Smuggli has uploaded a new change for review.
https://gerrit.wikimedia.org/r/157810
Change subject: Improved documentation
......................................................................
Improved documentation
Change-Id: I97ea7b1dec8b1b14c4390ceb923b5f927e587637
---
M includes/utility/CacheHelper.class.php
1 file changed, 8 insertions(+), 7 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation
refs/changes/10/157810/1
diff --git a/includes/utility/CacheHelper.class.php
b/includes/utility/CacheHelper.class.php
index c2e057a..14f41d3 100644
--- a/includes/utility/CacheHelper.class.php
+++ b/includes/utility/CacheHelper.class.php
@@ -9,6 +9,7 @@
class BsCacheHelper {
protected static $aCacheKeys = array();
+
protected static $oCache = null;
/**
@@ -16,7 +17,7 @@
* @return BagOStuff
*/
public static function getCache() {
- if( self::$oCache === null ) {
+ if ( self::$oCache === null ) {
self::$oCache = wfGetCache( CACHE_ANYTHING );
}
@@ -38,8 +39,8 @@
/**
* Get the value of a given key or returns false
- * @param type $sKey
- * @return type
+ * @param string $sKey
+ * @return mixed
*/
public static function get( $sKey ) {
return self::getCache()->get( $sKey );
@@ -47,10 +48,10 @@
/**
* Sets the value to the given key
- * @param type $sKey
- * @param type $mData
- * @param type $iExpiryTime
- * @return type
+ * @param string $sKey
+ * @param mixed $mData
+ * @param int $iExpiryTime Either an interval in seconds or a unix
timestamp for expiry
+ * @return bool
*/
public static function set( $sKey, $mData, $iExpiryTime = 0 ) {
return self::getCache()->set( $sKey, $mData, $iExpiryTime );
--
To view, visit https://gerrit.wikimedia.org/r/157810
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I97ea7b1dec8b1b14c4390ceb923b5f927e587637
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Smuggli <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits