diff --git a/lib/Cake/Cache/Engine/RedisEngine.php b/lib/Cake/Cache/Engine/RedisEngine.php index 7e266c50c..bf735d26a 100644 --- a/lib/Cake/Cache/Engine/RedisEngine.php +++ b/lib/Cake/Cache/Engine/RedisEngine.php @@ -242,7 +242,7 @@ class RedisEngine extends CacheEngine { $result = $this->_Redis->setnx($key, $value); // setnx() doesn't have an expiry option, so overwrite the key with one if ($result) { - return $this->_Redis->setex($key, $value, $duration); + return $this->_Redis->setex($key, $duration, $value); } return false; }