diff options
author | Greg Aker <greg@gregaker.net> | 2011-08-21 22:44:30 +0200 |
---|---|---|
committer | Greg Aker <greg@gregaker.net> | 2011-08-21 22:44:30 +0200 |
commit | 284dd9756b8c03059d13e460190d2385ba599a91 (patch) | |
tree | a98999821e57aa019aaa0839d68c510a1369ce51 /system/libraries/Cache | |
parent | 1791a447b7e5ba3023a7a2f8fcf607c3ef39a515 (diff) | |
parent | c456b4ad895d4b2f6f290038bc78ae53390d5f70 (diff) |
Merge pull request #234 from johnbellone/issue31
Fix #31: Changing to set as add will not save over existing value
Diffstat (limited to 'system/libraries/Cache')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_memcached.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Cache/drivers/Cache_memcached.php b/system/libraries/Cache/drivers/Cache_memcached.php index ae9d6cd96..04aa81a5a 100644 --- a/system/libraries/Cache/drivers/Cache_memcached.php +++ b/system/libraries/Cache/drivers/Cache_memcached.php @@ -64,7 +64,7 @@ class CI_Cache_memcached extends CI_Driver { */ public function save($id, $data, $ttl = 60) { - return $this->_memcached->add($id, array($data, time(), $ttl), $ttl); + return $this->_memcached->set($id, array($data, time(), $ttl), $ttl); } // ------------------------------------------------------------------------ |