return apcu_delete($id) || ! apcu_exists($id);
}
+ /**
+ * {@inheritdoc}
+ */
+ protected function doDeleteMultiple(array $keys)
+ {
+ $result = apcu_delete($keys);
+
+ return false !== $result && count($result) !== count($keys);
+ }
+
/**
* {@inheritdoc}
*/
$info = apcu_cache_info(true);
$sma = apcu_sma_info();
- return array(
+ return [
Cache::STATS_HITS => $info['num_hits'],
Cache::STATS_MISSES => $info['num_misses'],
Cache::STATS_UPTIME => $info['start_time'],
Cache::STATS_MEMORY_USAGE => $info['mem_size'],
Cache::STATS_MEMORY_AVAILABLE => $sma['avail_mem'],
- );
+ ];
}
}