X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fobjectcache%2FMemcachedBagOStuff.php;h=87acb532ec61cfc01ac2308a71622b3ce480220b;hb=f1b45cbed4d7fed42fc8bff4af4b1ff986f01b6f;hp=4f8209d9f8631fa771be5d10a855c03fb8f5b26a;hpb=62a6a48bd4cde140a2bebde73f882754dfaa273b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/objectcache/MemcachedBagOStuff.php b/includes/objectcache/MemcachedBagOStuff.php index 4f8209d9f8..87acb532ec 100644 --- a/includes/objectcache/MemcachedBagOStuff.php +++ b/includes/objectcache/MemcachedBagOStuff.php @@ -43,7 +43,7 @@ class MemcachedBagOStuff extends BagOStuff { if ( !isset( $params['persistent'] ) ) { $params['persistent'] = $GLOBALS['wgMemCachedPersistent']; } - if ( !isset( $params['compress_threshold'] ) ) { + if ( !isset( $params['compress_threshold'] ) ) { $params['compress_threshold'] = 1500; } if ( !isset( $params['timeout'] ) ) { @@ -99,7 +99,7 @@ class MemcachedBagOStuff extends BagOStuff { /** * @param $key string * @param $value int - * @param $exptime int (default 0) + * @param int $exptime (default 0) * @return Mixed */ public function add( $key, $value, $exptime = 0 ) { @@ -107,17 +107,6 @@ class MemcachedBagOStuff extends BagOStuff { $this->fixExpiry( $exptime ) ); } - /** - * @param $key string - * @param $value int - * @param $exptime - * @return Mixed - */ - public function replace( $key, $value, $exptime = 0 ) { - return $this->client->replace( $this->encodeKey( $key ), $value, - $this->fixExpiry( $exptime ) ); - } - /** * Get the underlying client object. This is provided for debugging * purposes.