summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/drivers
diff options
context:
space:
mode:
authorJohn Bellone <jb@thunkbrightly.com>2011-08-21 16:41:21 +0200
committerJohn Bellone <jb@thunkbrightly.com>2011-08-21 16:41:21 +0200
commitc456b4ad895d4b2f6f290038bc78ae53390d5f70 (patch)
treeb2f667412bf277cce395926ec8f65d1a4579580c /system/libraries/Cache/drivers
parent43194ea1af658914a89ca49aed4dca4617b9c4ff (diff)
Changing to set as add will not save over existing value
Diffstat (limited to 'system/libraries/Cache/drivers')
-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 ec2fd216a..a9baf22c5 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);
}
// ------------------------------------------------------------------------