Skip to content

Commit

Permalink
Fix parameter order.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 9, 2015
1 parent a5ff7ec commit d6251ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Cache/Engine/RedisEngine.php
Expand Up @@ -242,7 +242,7 @@ public function add($key, $value, $duration) {
$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;
}
Expand Down

0 comments on commit d6251ef

Please sign in to comment.