From 02d49834cb0d8936dc49352b3968c3baf6da3232 Mon Sep 17 00:00:00 2001 From: root <root@iZ23bpwwq5sZ.(none)> Date: Thu, 03 Aug 2017 14:59:11 +0800 Subject: [PATCH] update --- application/library/RedisCache.php | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/library/RedisCache.php b/application/library/RedisCache.php index dcbb708..d0668b3 100644 --- a/application/library/RedisCache.php +++ b/application/library/RedisCache.php @@ -36,7 +36,7 @@ $this->_TIMEOUT = 0; $this->_DBNAME = null; $this->_CTYPE = 1; - + $this->_AUTH = $config['auth']; if (!isset($this->_REDIS)) { $this->_REDIS = new Redis(); $this->connect($this->_HOST, $this->_PORT, $this->_TIMEOUT, $this->_DBNAME, $this->_CTYPE); @@ -58,6 +58,7 @@ default: break; } + $this->_REDIS->auth($this->_AUTH); } /** @@ -927,4 +928,4 @@ { return $this->_TRANSCATION->discard(); } -} \ No newline at end of file +} -- Gitblit v1.8.0