42 const KEY_SUFFIX =
':3';
44 protected function doGet( $key, $flags = 0, &$casToken =
null ) {
47 $blob = apcu_fetch( $key . self::KEY_SUFFIX );
56 public function set( $key,
$value, $exptime = 0, $flags = 0 ) {
58 $key . self::KEY_SUFFIX,
66 public function add( $key,
$value, $exptime = 0, $flags = 0 ) {
68 $key . self::KEY_SUFFIX,
74 public function delete( $key, $flags = 0 ) {
75 apcu_delete( $key . self::KEY_SUFFIX );
86 if ( apcu_exists( $key . self::KEY_SUFFIX ) ) {
87 return apcu_inc( $key . self::KEY_SUFFIX,
$value );
99 if ( apcu_exists( $key . self::KEY_SUFFIX ) ) {
100 return apcu_dec( $key . self::KEY_SUFFIX,
$value );