diff options
author | ftwbzhao <b.zhao1@gmail.com> | 2015-05-13 11:47:41 +0200 |
---|---|---|
committer | ftwbzhao <b.zhao1@gmail.com> | 2015-05-13 11:47:41 +0200 |
commit | b4f3630ae5240d085cf4283b82546005002e59e4 (patch) | |
tree | 8009a42c9187608d7b78fbb53b76aa2cb679afe4 /system | |
parent | abbd31f466ad5b921e37498f7c6d7069bf3255b3 (diff) |
[Cache]minor adjustments for save function
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_redis.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php index b940b76cb..66966ba16 100644 --- a/system/libraries/Cache/drivers/Cache_redis.php +++ b/system/libraries/Cache/drivers/Cache_redis.php @@ -125,9 +125,7 @@ class CI_Cache_redis extends CI_Driver $this->_redis->sRemove('_ci_redis_serialized', $id); } - return ($ttl) - ? $this->_redis->setex($id, $ttl, $data) - : $this->_redis->set($id, $data); + return $this->_redis->set($id, $data, $ttl); } // ------------------------------------------------------------------------ |