summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2015-04-16 09:30:07 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-04-16 09:30:07 +0200
commit2e06cf49a5ff2eca644b66aa9eec299830eb67bd (patch)
tree1b5d2065ede2343ea555c6903e8afe1cf6a3de79 /lib
parent8606b7ca669674a87a63c58a994585be0b0e1102 (diff)
parent8ebf9de3f840f28f7c765cdf834369a46bcf8bea (diff)
downloadnextcloud-server-2e06cf49a5ff2eca644b66aa9eec299830eb67bd.tar.gz
nextcloud-server-2e06cf49a5ff2eca644b66aa9eec299830eb67bd.zip
Merge pull request #15623 from t3chguy/master
Redis DB Index via Select
Diffstat (limited to 'lib')
-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'] );
+ }
}
}