objectcache: remove redundant merge() definitions
Change-Id: Ide24dd395b300f8d747b2be307dbbad08f6b221d
This commit is contained in:
parent
17ff732fb7
commit
f00df01316
7 changed files with 0 additions and 28 deletions
|
|
@ -120,10 +120,6 @@ class APCBagOStuff extends BagOStuff {
|
|||
return apc_dec( $key . self::KEY_SUFFIX, $value );
|
||||
}
|
||||
|
||||
public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
|
||||
return $this->mergeViaCas( $key, $callback, $exptime, $attempts, $flags );
|
||||
}
|
||||
|
||||
protected function serialize( $value ) {
|
||||
if ( !$this->nativeSerialize && !$this->isInteger( $value ) ) {
|
||||
$value = serialize( $value );
|
||||
|
|
|
|||
|
|
@ -104,8 +104,4 @@ class APCUBagOStuff extends APCBagOStuff {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
|
||||
return $this->mergeViaCas( $key, $callback, $exptime, $attempts, $flags );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,10 +130,6 @@ class HashBagOStuff extends BagOStuff {
|
|||
return false;
|
||||
}
|
||||
|
||||
public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
|
||||
return $this->mergeViaCas( $key, $callback, $exptime, $attempts, $flags );
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear all values in cache
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -91,10 +91,6 @@ class MemcachedBagOStuff extends BagOStuff {
|
|||
return ( $n !== false && $n !== null ) ? $n : false;
|
||||
}
|
||||
|
||||
public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
|
||||
return $this->mergeViaCas( $key, $callback, $exptime, $attempts );
|
||||
}
|
||||
|
||||
public function changeTTL( $key, $exptime = 0, $flags = 0 ) {
|
||||
return $this->client->touch( $this->validateKeyEncoding( $key ),
|
||||
$this->fixExpiry( $exptime ) );
|
||||
|
|
|
|||
|
|
@ -164,10 +164,6 @@ class RESTBagOStuff extends BagOStuff {
|
|||
return false;
|
||||
}
|
||||
|
||||
public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
|
||||
return $this->mergeViaCas( $key, $callback, $exptime, $attempts, $flags );
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle storage error
|
||||
* @param string $msg Error message
|
||||
|
|
|
|||
|
|
@ -297,10 +297,6 @@ class RedisBagOStuff extends BagOStuff {
|
|||
return $result;
|
||||
}
|
||||
|
||||
public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
|
||||
return $this->mergeViaCas( $key, $callback, $exptime, $attempts );
|
||||
}
|
||||
|
||||
/**
|
||||
* Non-atomic implementation of incr().
|
||||
*
|
||||
|
|
|
|||
|
|
@ -93,10 +93,6 @@ class WinCacheBagOStuff extends BagOStuff {
|
|||
return true;
|
||||
}
|
||||
|
||||
public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
|
||||
return $this->mergeViaCas( $key, $callback, $exptime, $attempts, $flags );
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a cache key.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue