*/ class WinCache extends \MCMS\_\Plugin\Cache\MCMS\NullCache\NullCache implements iPlugInCache { private $basepref; public function __construct() { $this->basepref = substr(md5(_BASEURL_), 0, 6); $this->cache = new \Mammut\Cache\WinCache('mcms'); } private function genKey($key) { return $this->basepref . '_' . base64_encode($key); } public function set($key, $value, $ttl) { $key = $this->genKey($key); return $this->cache->set($key, $value, $ttl); } public function get($key, $default = NULL) { $key = $this->genKey($key); return $this->cache->get($key, $default); } public function delete($key) { $key = $this->genKey($key); return $this->cache->delete($key); } public function keyExists($key) { $key = $this->genKey($key); return $this->cache->keyExists($key); } }