summaryrefslogtreecommitdiffstats
path: root/lib/private/memcache/redis.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/memcache/redis.php')
-rw-r--r--lib/private/memcache/redis.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/memcache/redis.php b/lib/private/memcache/redis.php
index 21477798059..83be662eabf 100644
--- a/lib/private/memcache/redis.php
+++ b/lib/private/memcache/redis.php
@@ -56,6 +56,9 @@ class Redis extends Cache implements IMemcache {
}
self::$cache->connect($host, $port, $timeout);
+ if(isset($config['password']) && $config['password'] !== '') {
+ self::$cache->auth($config['password']);
+ }
if (isset($config['dbindex'])) {
self::$cache->select($config['dbindex']);