mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-07-23 05:22:32 +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…
Add table
Add a link
Reference in a new issue