summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache
diff options
context:
space:
mode:
authorGreg Aker <greg@gregaker.net>2011-08-21 22:44:30 +0200
committerGreg Aker <greg@gregaker.net>2011-08-21 22:44:30 +0200
commit284dd9756b8c03059d13e460190d2385ba599a91 (patch)
treea98999821e57aa019aaa0839d68c510a1369ce51 /system/libraries/Cache
parent1791a447b7e5ba3023a7a2f8fcf607c3ef39a515 (diff)
parentc456b4ad895d4b2f6f290038bc78ae53390d5f70 (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.php2
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);
}
// ------------------------------------------------------------------------