X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Fobjectcache%2FAPCBagOStuff.php;h=e9bd7bec90fa74a974327106a5ad2298dbf2ea06;hb=9bbb26ffbd16edbaccce27461730fa9e172aa048;hp=465fe820e0b0aa9ad3691e08a2f53b9034726a9b;hpb=04d1aa3033f40a38d721f7f0e88b5bac440d2869;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/objectcache/APCBagOStuff.php b/includes/libs/objectcache/APCBagOStuff.php index 465fe820e0..e9bd7bec90 100644 --- a/includes/libs/objectcache/APCBagOStuff.php +++ b/includes/libs/objectcache/APCBagOStuff.php @@ -33,7 +33,7 @@ * * @ingroup Cache */ -class APCBagOStuff extends BagOStuff { +class APCBagOStuff extends MediumSpecificBagOStuff { /** @var bool Whether to trust the APC implementation to serialization */ private $nativeSerialize; @@ -73,7 +73,7 @@ class APCBagOStuff extends BagOStuff { return true; } - public function add( $key, $value, $exptime = 0, $flags = 0 ) { + protected function doAdd( $key, $value, $exptime = 0, $flags = 0 ) { return apc_add( $key . self::KEY_SUFFIX, $this->nativeSerialize ? $value : $this->serialize( $value ), @@ -87,11 +87,11 @@ class APCBagOStuff extends BagOStuff { return true; } - public function incr( $key, $value = 1 ) { + public function incr( $key, $value = 1, $flags = 0 ) { return apc_inc( $key . self::KEY_SUFFIX, $value ); } - public function decr( $key, $value = 1 ) { + public function decr( $key, $value = 1, $flags = 0 ) { return apc_dec( $key . self::KEY_SUFFIX, $value ); } }