summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/Cache.php
diff options
context:
space:
mode:
authorftwbzhao <b.zhao1@gmail.com>2015-07-05 16:07:58 +0200
committerftwbzhao <b.zhao1@gmail.com>2015-07-05 16:07:58 +0200
commit63b0c26d9d7e6b064145f629ecae5bda5f43fec6 (patch)
tree728751e8e176b3e4f4d1a197d4df4d508f5c240b /system/libraries/Cache/Cache.php
parenta1170aff602317d9b6f2d5c1d5cc60d3dc82ee58 (diff)
supported key_prefix on `increment` and `decrement`
Diffstat (limited to 'system/libraries/Cache/Cache.php')
-rw-r--r--system/libraries/Cache/Cache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Cache/Cache.php b/system/libraries/Cache/Cache.php
index 06403b6e9..0c87a5628 100644
--- a/system/libraries/Cache/Cache.php
+++ b/system/libraries/Cache/Cache.php
@@ -178,7 +178,7 @@ class CI_Cache extends CI_Driver_Library {
*/
public function increment($id, $offset = 1)
{
- return $this->{$this->_adapter}->increment($id, $offset);
+ return $this->{$this->_adapter}->increment($this->key_prefix.$id, $offset);
}
// ------------------------------------------------------------------------
@@ -192,7 +192,7 @@ class CI_Cache extends CI_Driver_Library {
*/
public function decrement($id, $offset = 1)
{
- return $this->{$this->_adapter}->decrement($id, $offset);
+ return $this->{$this->_adapter}->decrement($this->key_prefix.$id, $offset);
}
// ------------------------------------------------------------------------