From d6251eff19de8132b0a10fca451a4b78ceec7a0b Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 9 Aug 2015 15:54:09 -0400 Subject: [PATCH] Fix parameter order. --- lib/Cake/Cache/Engine/RedisEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }