Fix parameter order.

This commit is contained in:
mark_story 2015-08-09 15:54:09 -04:00
parent a5ff7ecaa3
commit d6251eff19

View file

@ -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;
} }