X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fobjectcache%2FBagOStuff.php;h=1978c3ead3a36dfa14383bcf9b6cac156b33ddc0;hb=09999942fa994949712edf04333cd375ec20c8f7;hp=dca5f32cbe329f3e59b279fd54b2ff185aac2dca;hpb=731346a7cb686ffe9a0e2f8a1e1fb3f5e8431a16;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/objectcache/BagOStuff.php b/includes/objectcache/BagOStuff.php index dca5f32cbe..1978c3ead3 100644 --- a/includes/objectcache/BagOStuff.php +++ b/includes/objectcache/BagOStuff.php @@ -46,10 +46,10 @@ abstract class BagOStuff { protected $lastError = self::ERR_NONE; /** Possible values for getLastError() */ - const ERR_NONE = 0; // no error + const ERR_NONE = 0; // no error const ERR_NO_RESPONSE = 1; // no response const ERR_UNREACHABLE = 2; // can't connect - const ERR_UNEXPECTED = 3; // response gave some error + const ERR_UNEXPECTED = 3; // response gave some error /** * @param bool $bool @@ -251,7 +251,7 @@ abstract class BagOStuff { * Batch insertion * @param array $data $key => $value assoc array * @param int $exptime Either an interval in seconds or a unix timestamp for expiry - * @return bool success + * @return bool Success * @since 1.24 */ public function setMulti( array $data, $exptime = 0 ) { @@ -277,21 +277,6 @@ abstract class BagOStuff { return false; // key already set } - /** - * @param string $key - * @param mixed $value - * @param int $exptime - * @return bool Success - * @deprecated since 1.23 - */ - public function replace( $key, $value, $exptime = 0 ) { - wfDeprecated( __METHOD__, '1.23' ); - if ( $this->get( $key ) !== false ) { - return $this->set( $key, $value, $exptime ); - } - return false; // key not already set - } - /** * Increase stored value of $key by $value while preserving its TTL * @param string $key Key to increase @@ -330,9 +315,9 @@ abstract class BagOStuff { * This will create the key with value $init and TTL $ttl if not present * * @param string $key - * @param integer $ttl - * @param integer $value - * @param integer $init + * @param int $ttl + * @param int $value + * @param int $init * @return bool * @since 1.24 */