1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +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) public function save($id, $data, $lifeTime = false)
{ {
$lifeTime = $this->getLifeTime($specificLifeTime);
if ($this->_options['compression']) { if ($this->_options['compression']) {
$flag = MEMCACHE_COMPRESSED; $flag = MEMCACHE_COMPRESSED;
} else { } else {
$flag = 0; $flag = 0;
} }
$result = $this->_memcache->set($id, array($data, time()), $flag, $lifeTime); $result = $this->_memcache->set($id, $data, $flag, $lifeTime);
} }
/** /**
* Remove a cache record * Remove a cache record