X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Fobjectcache%2FAPCUBagOStuff.php;h=2b26500597c64a3def8246b07ba507be7f3af637;hp=b14ac7c4dfd58a769e2e94e1c23fdb52babd6d88;hb=fa0f6f34972c0e0f4aac24a03b3efdfc45f256f6;hpb=67d01c452da591faced0a4be7940acf4f3292928 diff --git a/includes/libs/objectcache/APCUBagOStuff.php b/includes/libs/objectcache/APCUBagOStuff.php index b14ac7c4df..2b26500597 100644 --- a/includes/libs/objectcache/APCUBagOStuff.php +++ b/includes/libs/objectcache/APCUBagOStuff.php @@ -33,7 +33,7 @@ * * @ingroup Cache */ -class APCUBagOStuff extends BagOStuff { +class APCUBagOStuff extends MediumSpecificBagOStuff { /** @var bool Whether to trust the APC implementation to serialization */ private $nativeSerialize; @@ -71,7 +71,7 @@ class APCUBagOStuff extends BagOStuff { ); } - public function add( $key, $value, $exptime = 0, $flags = 0 ) { + protected function doAdd( $key, $value, $exptime = 0, $flags = 0 ) { return apcu_add( $key . self::KEY_SUFFIX, $this->nativeSerialize ? $value : $this->serialize( $value ), @@ -85,7 +85,7 @@ class APCUBagOStuff extends BagOStuff { return true; } - public function incr( $key, $value = 1 ) { + public function incr( $key, $value = 1, $flags = 0 ) { // https://github.com/krakjoe/apcu/issues/166 if ( apcu_exists( $key . self::KEY_SUFFIX ) ) { return apcu_inc( $key . self::KEY_SUFFIX, $value ); @@ -94,7 +94,7 @@ class APCUBagOStuff extends BagOStuff { } } - public function decr( $key, $value = 1 ) { + public function decr( $key, $value = 1, $flags = 0 ) { // https://github.com/krakjoe/apcu/issues/166 if ( apcu_exists( $key . self::KEY_SUFFIX ) ) { return apcu_dec( $key . self::KEY_SUFFIX, $value );