summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache
diff options
context:
space:
mode:
authorIvan Tcholakov <ivantcholakov@gmail.com>2014-08-18 09:37:29 +0200
committerIvan Tcholakov <ivantcholakov@gmail.com>2014-08-18 09:37:29 +0200
commit7c835578642341a01958961eaa5e36e74ea92deb (patch)
treef7d2d8265b99f8114d3512b962002290213896fc /system/libraries/Cache
parent58531403e7b2a49ba7d723e8792e8656b5172d83 (diff)
Cache_redis, Hardcoded name for the auxilary Redis set - '_ci_redis_serialized'.
Diffstat (limited to 'system/libraries/Cache')
-rw-r--r--system/libraries/Cache/drivers/Cache_redis.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/system/libraries/Cache/drivers/Cache_redis.php b/system/libraries/Cache/drivers/Cache_redis.php
index 9fbdc6593..21ef9919d 100644
--- a/system/libraries/Cache/drivers/Cache_redis.php
+++ b/system/libraries/Cache/drivers/Cache_redis.php
@@ -38,11 +38,6 @@ defined('BASEPATH') OR exit('No direct script access allowed');
class CI_Cache_redis extends CI_Driver
{
/**
- * The name of the Redis set that is to store keys of serialized values.
- */
- const KEY_SET_FOR_SERIALIZATION = '_ci_redis_serialization_set';
-
- /**
* Default config
*
* @static
@@ -112,7 +107,7 @@ class CI_Cache_redis extends CI_Driver
$this->_serialized[] = $id;
}
- $this->_redis->sAdd(self::KEY_SET_FOR_SERIALIZATION, $id);
+ $this->_redis->sAdd('_ci_redis_serialized', $id);
}
else
{
@@ -121,7 +116,7 @@ class CI_Cache_redis extends CI_Driver
unset($this->_serialized[$index_key]);
}
- $this->_redis->sRemove(self::KEY_SET_FOR_SERIALIZATION, $id);
+ $this->_redis->sRemove('_ci_redis_serialized', $id);
}
return ($ttl)
@@ -296,7 +291,7 @@ class CI_Cache_redis extends CI_Driver
}
// Initialize the index of selialized values.
- $this->_serialized = $this->_redis->sMembers(self::KEY_SET_FOR_SERIALIZATION);
+ $this->_serialized = $this->_redis->sMembers('_ci_redis_serialized');
if (empty($this->_serialized))
{