[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

@ -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);
}
/**