mirror of
https://github.com/YGGverse/cache-php.git
synced 2026-03-31 17:45:28 +00:00
remove current timestamp prefix from timeout definition
This commit is contained in:
parent
895a3dd6a2
commit
e6903cc640
2 changed files with 11 additions and 11 deletions
|
|
@ -40,7 +40,7 @@ class Memory {
|
|||
]
|
||||
);
|
||||
|
||||
return $this->_memcached->set($key, $value, ($timeout ? $timeout : $this->_timeout) + time());
|
||||
return $this->_memcached->set($key, $value, ($timeout ? $timeout : $this->_timeout));
|
||||
}
|
||||
|
||||
public function delete(string $key) : bool
|
||||
|
|
@ -70,7 +70,7 @@ class Memory {
|
|||
}
|
||||
else
|
||||
{
|
||||
if (true === $this->_memcached->set($key, $value, ($timeout ? $timeout : $this->_timeout) + time()))
|
||||
if (true === $this->_memcached->set($key, $value, ($timeout ? $timeout : $this->_timeout)))
|
||||
{
|
||||
return $value;
|
||||
}
|
||||
|
|
@ -106,7 +106,7 @@ class Memory {
|
|||
$arguments
|
||||
);
|
||||
|
||||
if (true === $this->_memcached->set($key, $value, ($timeout ? $timeout : $this->_timeout) + time()))
|
||||
if (true === $this->_memcached->set($key, $value, ($timeout ? $timeout : $this->_timeout)))
|
||||
{
|
||||
return $value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue