[Profiler] Fix memcache(d)

This commit is contained in:
Victor Berchet 2012-02-15 10:50:58 +01:00
parent 4a0057fd56
commit b95284e198
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ abstract class BaseMemcacheProfilerStorage implements ProfilerStorageInterface
* @param string $dsn A data source name
* @param string $username
* @param string $password
* @param int $lifetime The lifetime to use for the purge
* @param int $lifetime The lifetime to use for the purge
*/
public function __construct($dsn, $username = '', $password = '', $lifetime = 86400)
{

View File

@ -63,7 +63,7 @@ class MemcacheProfilerStorage extends BaseMemcacheProfilerStorage
*/
protected function setValue($key, $value, $expiration = 0)
{
return $this->getMemcache()->set($key, $value, false, $expiration);
return $this->getMemcache()->set($key, $value, false, time() + $expiration);
}
/**

View File

@ -67,7 +67,7 @@ class MemcachedProfilerStorage extends BaseMemcacheProfilerStorage
*/
protected function setValue($key, $value, $expiration = 0)
{
return $this->getMemcached()->set($key, $value, false, $expiration);
return $this->getMemcached()->set($key, $value, false, time() + $expiration);
}
/**