diff options
author | Andrey Andreev <narf@devilix.net> | 2019-05-11 00:05:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-11 00:05:42 +0200 |
commit | fcf39bf874170ac29d439e82b7763b3649446801 (patch) | |
tree | 9e755f05377639e1beb7a146cda6bd35db1188f0 /system/libraries/Cache/drivers/Cache_redis.php | |
parent | 37f2c3d53ebcdaf68a6e257136c8f17545b3bebb (diff) | |
parent | 0177f4d1551cc6b058ba9fdd277253dd66c82cca (diff) |
[ci skip] Merge pull request #5753 from exussum12/fixIncrRedis
Fix increment / decrement in redis
Diffstat (limited to 'system/libraries/Cache/drivers/Cache_redis.php')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_redis.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php index 8a7df7abd..e10a5b344 100644 --- a/system/libraries/Cache/drivers/Cache_redis.php +++ b/system/libraries/Cache/drivers/Cache_redis.php @@ -219,7 +219,7 @@ class CI_Cache_redis extends CI_Driver */ public function increment($id, $offset = 1) { - return $this->_redis->incr($id, $offset); + return $this->_redis->incrBy($id, $offset); } // ------------------------------------------------------------------------ @@ -233,7 +233,7 @@ class CI_Cache_redis extends CI_Driver */ public function decrement($id, $offset = 1) { - return $this->_redis->decr($id, $offset); + return $this->_redis->decrBy($id, $offset); } // ------------------------------------------------------------------------ |