Redis implementation, #16

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@149 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
pzinovkin
2010-07-19 15:06:01 +00:00
parent 70ccc8bc26
commit 8a6f6097bf
8 changed files with 185 additions and 195 deletions

View File

@ -26,7 +26,6 @@ class MemcacheCache extends Cache
*/
protected $expire = 3600;
protected $keys = array();
public function __construct($config)
{
@ -150,19 +149,11 @@ class MemcacheCache extends Cache
*/
protected function getKey($key)
{
if (!isset($this->keys[$key])) {
$this->keys[$key] = md5($this->key_salt . $key);
}
return $this->keys[$key];
return md5($this->key_salt . $key);
}
public function getExpire($expire)
{
return ($expire > 0) ? $expire : $this->expire;
}
public function cleanKeys()
{
$this->keys = array();
}
}