summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-05-13 16:25:14 +0200
committerAndrey Andreev <narf@devilix.net>2015-05-13 16:25:14 +0200
commit38a8cffe67cd89ff947d2058a728781f7f3a103b (patch)
tree3db94db4111945b4368acb13e8ae1047d698d802 /system
parent7d19161c1d596c379e72c40daec290ce6f5f16b6 (diff)
parentb4f3630ae5240d085cf4283b82546005002e59e4 (diff)
Merge pull request #3853 from ftwbzhao/feature/ci3.0
Minor adjustment for Redis Cache save function
Diffstat (limited to 'system')
-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);
}
// ------------------------------------------------------------------------