diff options
author | Andrey Andreev <narf@devilix.net> | 2015-07-06 10:12:04 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-07-06 10:12:04 +0200 |
commit | 537f6a0ec15032c05e23bdb87986ecd2cb9f05aa (patch) | |
tree | 477e85f15d125f078f53af8b226a767cd27da9bb | |
parent | 358de8cda7ad24a0dc00ccb346bf620fff3d2479 (diff) | |
parent | 63b0c26d9d7e6b064145f629ecae5bda5f43fec6 (diff) |
Merge pull request #3955 from ftwbzhao/ci3.0
key_prefix support for Cache increment() and decrement()
-rw-r--r-- | system/libraries/Cache/Cache.php | 4 |
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); } // ------------------------------------------------------------------------ |