summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorScott Dutton <scott@exussum.co.uk>2019-05-08 21:13:03 +0200
committerScott Dutton <scott@exussum.co.uk>2019-05-08 21:13:03 +0200
commit7f9865217889ef7fd6efdd5340fa8c76feb1a741 (patch)
treeac4e0834a4ed9ae1c617eb43c19b57f2a96f9ab1 /system
parente6dc433586c648f4a9ebb8603e7b847d1d4f3f70 (diff)
Fix increment / decrement
also fixed a value incorrectly returned docblock says array but bool returned
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index 37596189a..96d27edf9 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -228,7 +228,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);
}
// ------------------------------------------------------------------------
@@ -242,7 +242,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);
}
// ------------------------------------------------------------------------
@@ -294,7 +294,7 @@ class CI_Cache_redis extends CI_Driver
);
}
- return FALSE;
+ return array();
}
// ------------------------------------------------------------------------