summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-05-07 11:16:33 +0200
committerAndrey Andreev <narf@devilix.net>2015-05-07 11:16:33 +0200
commit70f738a14b0f6f70d9292c0f488ea423a76f438e (patch)
tree2cbbf187b2cf072c21b0ea573a38973e7644845c /system/libraries/Cache
parent170ae282338584ebe257d2fb21101ccf84a3f800 (diff)
Revert "Issue/PR #3836"
Diffstat (limited to 'system/libraries/Cache')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index 773d20c43..b940b76cb 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -165,9 +165,7 @@ class CI_Cache_redis extends CI_Driver
*/
public function increment($id, $offset = 1)
{
- return ($offset == 1)
- ? $this->_redis->incr($id)
- : $this->_redis->incrBy($id, $offset);
+ return $this->_redis->incr($id, $offset);
}
// ------------------------------------------------------------------------
@@ -181,9 +179,7 @@ class CI_Cache_redis extends CI_Driver
*/
public function decrement($id, $offset = 1)
{
- return ($offset == 1)
- ? $this->_redis->decr($id)
- : $this->_redis->decrBy($id, $offset);
+ return $this->_redis->decr($id, $offset);
}
// ------------------------------------------------------------------------