1
0
Fork 0

Add hostname prefix in MemcachedCacheDriver

This commit is contained in:
Hypolite Petovan 2018-04-18 23:36:23 -04:00
parent 21dbe233cb
commit ca4ca51c6a

View file

@ -50,7 +50,7 @@ class MemcachedCacheDriver extends BaseObject implements ICacheDriver
{
// We store with the hostname as key to avoid problems with other applications
return $this->memcached->set(
self::getApp()->get_hostname() . ":" . $key,
self::getApp()->get_hostname() . ':' . $key,
$value,
time() + $duration
);
@ -58,7 +58,9 @@ class MemcachedCacheDriver extends BaseObject implements ICacheDriver
public function delete($key)
{
return $this->memcached->delete($key);
$return = $this->memcached->delete(self::getApp()->get_hostname() . ':' . $key);
return $return;
}
public function clear()