8000 [Profiler] Fix memcache(d) · symfony/symfony@b95284e · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit b95284e

Browse files
committed
[Profiler] Fix memcache(d)
1 parent 4a0057f commit b95284e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Component/HttpKernel/Profiler/BaseMemcacheProfilerStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ abstract class BaseMemcacheProfilerStorage implements ProfilerStorageInterface
2929
* @param string $dsn A data source name
3030
* @param string $username
3131
* @param string $password
32-
* @param int $lifetime The lifetime to use for the purge
32+
* @param int $lifetime The lifetime to use for the purge
3333
*/
3434
public function __construct($dsn, $username = '', $password = '', $lifetime = 86400)
3535
{

src/Symfony/Component/HttpKernel/Profiler/MemcacheProfilerStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function getValue($key)
6363
*/
6464
protected function setValue($key, $value, $expiration = 0)
6565
{
66-
return $this->getMemcache()->set($key, $value, false, $expiration);
66+
return $this->getMemcache()->set($key, $value, false, time() + $expiration);
6767
}
6868

6969
/**

src/Symfony/Component/HttpKernel/Profiler/MemcachedProfilerStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function getValue($key)
6767
*/
6868
protected function setValue($key, $value, $expiration = 0)
6969
{
70-
return $this->getMemcached()->set($key, $value, false, $expiration);
70+
return $this->getMemcached()->set($key, $value, false, time() + $expiration);
7171
}
7272

7373
/**

0 commit comments

Comments
 (0)
0