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:
11
cache/MemcacheCache.php
vendored
11
cache/MemcacheCache.php
vendored
@ -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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user