prefix . strtr($key, ':/', '-_'); // Zend's pricey stuff. if (function_exists('zend_shm_cache_fetch')) return zend_shm_cache_fetch('SMF::' . $key); elseif (function_exists('output_cache_get')) return output_cache_get($key, $ttl); } /** * {@inheritDoc} */ public function putData($key, $value, $ttl = null) { $key = $this->prefix . strtr($key, ':/', '-_'); if (function_exists('zend_shm_cache_store')) return zend_shm_cache_store('SMF::' . $key, $value, $ttl); elseif (function_exists('output_cache_put')) return output_cache_put($key, $value); } /** * {@inheritDoc} */ public function cleanCache($type = '') { $this->invalidateCache(); return zend_shm_cache_clear('SMF'); } /** * {@inheritDoc} */ public function getVersion() { return zend_version(); } } ?>