summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorftwbzhao <b.zhao1@gmail.com>2015-05-13 11:47:41 +0200
committerftwbzhao <b.zhao1@gmail.com>2015-05-13 11:47:41 +0200
commitb4f3630ae5240d085cf4283b82546005002e59e4 (patch)
tree8009a42c9187608d7b78fbb53b76aa2cb679afe4
parentabbd31f466ad5b921e37498f7c6d7069bf3255b3 (diff)
[Cache]minor adjustments for save function
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php4
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);
}
// ------------------------------------------------------------------------