X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Fobjectcache%2FXCacheBagOStuff.php;h=47c29064b16b2d2b4cbcdf4918a718e5766337d9;hb=d0a8e6b9b30272ec216a8a2ceda3b7fc60db1e7a;hp=cfee92362a602c21f00b6b908d546b83ba24da5c;hpb=badc035712ded02e8ec7ee4c5e8a0fe09e2811d2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/objectcache/XCacheBagOStuff.php b/includes/libs/objectcache/XCacheBagOStuff.php index cfee92362a..47c29064b1 100644 --- a/includes/libs/objectcache/XCacheBagOStuff.php +++ b/includes/libs/objectcache/XCacheBagOStuff.php @@ -28,14 +28,7 @@ * @ingroup Cache */ class XCacheBagOStuff extends BagOStuff { - /** - * Get a value from the XCache object cache - * - * @param string $key Cache key - * @param mixed $casToken Cas token - * @return mixed - */ - public function get( $key, &$casToken = null ) { + protected function doGet( $key, $flags = 0 ) { $val = xcache_get( $key ); if ( is_string( $val ) ) { @@ -51,15 +44,7 @@ class XCacheBagOStuff extends BagOStuff { return $val; } - /** - * Store a value in the XCache object cache - * - * @param string $key Cache key - * @param mixed $value Object to store - * @param int $expire Expiration time - * @return bool - */ - public function set( $key, $value, $expire = 0 ) { + public function set( $key, $value, $expire = 0, $flags = 0 ) { if ( !$this->isInteger( $value ) ) { $value = serialize( $value ); } @@ -68,12 +53,6 @@ class XCacheBagOStuff extends BagOStuff { return true; } - /** - * Remove a value from the XCache object cache - * - * @param string $key Cache key - * @return bool - */ public function delete( $key ) { xcache_unset( $key ); return true;