diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/memcache/redis.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/memcache/redis.php b/lib/private/memcache/redis.php index 62186d3c4ec..e7425726b2b 100644 --- a/lib/private/memcache/redis.php +++ b/lib/private/memcache/redis.php @@ -51,7 +51,12 @@ class Redis extends Cache { } else { $timeout = 0.0; // unlimited } + self::$cache->connect( $host, $port, $timeout ); + + if (isset($config['dbindex'])) { + self::$cache->select( $config['dbindex'] ); + } } } |