From f7a98b088d5f7246cf12ee072169057a8e762664 Mon Sep 17 00:00:00 2001 From: colly_wyx <wangyixiong_007@163.com> Date: Thu, 10 Aug 2017 08:40:40 +0800 Subject: [PATCH] 新闻,数据监控 --- 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..32ac759 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