mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix parameter order.
This commit is contained in:
parent
a5ff7ecaa3
commit
d6251eff19
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ class RedisEngine extends CacheEngine {
|
||||||
$result = $this->_Redis->setnx($key, $value);
|
$result = $this->_Redis->setnx($key, $value);
|
||||||
// setnx() doesn't have an expiry option, so overwrite the key with one
|
// setnx() doesn't have an expiry option, so overwrite the key with one
|
||||||
if ($result) {
|
if ($result) {
|
||||||
return $this->_Redis->setex($key, $value, $duration);
|
return $this->_Redis->setex($key, $duration, $value);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue