Commit 241601ab authored by 顾文旭's avatar 顾文旭

update

parent 97a50e13
......@@ -199,7 +199,7 @@ class RedisSession extends Session
protected function getSessionRedis()
{
if (is_null($this->redis)) {
$this->redis = RedisUtil::getInstance('redis', ['serverRegion'=> 'master', 'serializer' => 'php', 'master'=> true]);
$this->redis = RedisUtil::getInstance('cache', ['serverRegion'=> 'master', 'serializer' => 'php', 'master'=> true]);
}
return $this->redis;
}
......
......@@ -119,7 +119,7 @@ class RedisSessionHandler implements \SessionHandlerInterface
public function getRedis()
{
if (is_null($this->redis)) {
$this->redis = RedisUtil::getInstance('redis', ['serverRegion'=> 'master', 'serializer' => 'php', 'master'=> true]);
$this->redis = RedisUtil::getInstance('cache', ['serverRegion'=> 'master', 'serializer' => 'php', 'master'=> true]);
}
return $this->redis;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment