summaryrefslogtreecommitdiffstats
path: root/lib/private/memcache
diff options
context:
space:
mode:
authorMichael Telatynski <7t3chguy@gmail.com>2015-04-14 20:40:31 +0100
committerMichael Telatynski <7t3chguy@gmail.com>2015-04-15 21:24:38 +0100
commit8ebf9de3f840f28f7c765cdf834369a46bcf8bea (patch)
tree42a691211c69fafdaf05c8ac9fd46c2b275bf76d /lib/private/memcache
parent2a683369526e33ea495ecce47a8de812f3320bc2 (diff)
downloadnextcloud-server-8ebf9de3f840f28f7c765cdf834369a46bcf8bea.tar.gz
nextcloud-server-8ebf9de3f840f28f7c765cdf834369a46bcf8bea.zip
Memcache\Redis Add DB Select Functionality
Diffstat (limited to 'lib/private/memcache')
-rw-r--r--lib/private/memcache/redis.php5
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'] );
+ }
}
}