42 protected function doGet( $key, $flags = 0 ) {
44 apcu_fetch( $key . self::KEY_SUFFIX )
48 public function set( $key,
$value, $exptime = 0, $flags = 0 ) {
50 $key . self::KEY_SUFFIX,
58 public function delete( $key ) {
59 apcu_delete( $key . self::KEY_SUFFIX );
70 if ( apcu_exists( $key . self::KEY_SUFFIX ) ) {
71 return apcu_inc( $key . self::KEY_SUFFIX,
$value );
83 if ( apcu_exists( $key . self::KEY_SUFFIX ) ) {
84 return apcu_dec( $key . self::KEY_SUFFIX,
$value );
This is a wrapper for APC's shared memory functions.
This is a wrapper for APCU's shared memory functions.
incr( $key, $value=1)
Increase stored value of $key by $value while preserving its TTL.
decr( $key, $value=1)
Decrease stored value of $key by $value while preserving its TTL.
__construct(array $params=[])
Available parameters are: