1
0
mirror of synced 2024-12-13 22:56:04 +03:00
This commit is contained in:
zYne 2007-02-09 23:16:47 +00:00
parent 160bae1aa3
commit e1e97313a2

View File

@ -111,15 +111,13 @@ class Doctrine_Cache_Memcache extends Doctrine_Cache_Driver
*/
public function save($id, $data, $lifeTime = false)
{
$lifeTime = $this->getLifeTime($specificLifeTime);
if ($this->_options['compression']) {
$flag = MEMCACHE_COMPRESSED;
} else {
$flag = 0;
}
$result = $this->_memcache->set($id, array($data, time()), $flag, $lifeTime);
$result = $this->_memcache->set($id, $data, $flag, $lifeTime);
}
/**
* Remove a cache record