summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/drivers/Cache_redis.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Cache/drivers/Cache_redis.php')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index 21ef9919d..20378785a 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -134,6 +134,9 @@ class CI_Cache_redis extends CI_Driver
*/
public function delete($key)
{
+ // This is for not leaving garbage keys within the Redis auxilary set.
+ $this->_redis->sRemove('_ci_redis_serialized', $key);
+
return ($this->_redis->delete($key) === 1);
}