prefix . strtr($key, ':/', '-_'); $value = apcu_fetch($key . 'smf'); return !empty($value) ? $value : null; } /** * {@inheritDoc} */ public function putData($key, $value, $ttl = null) { $key = $this->prefix . strtr($key, ':/', '-_'); // An extended key is needed to counteract a bug in APC. if ($value === null) return apcu_delete($key . 'smf'); else return apcu_store($key . 'smf', $value, $ttl !== null ? $ttl : $this->ttl); } /** * {@inheritDoc} */ public function cleanCache($type = '') { $this->invalidateCache(); return apcu_clear_cache(); } /** * {@inheritDoc} */ public function getVersion() { return phpversion('apcu'); } } ?>