Commit e3df8070 authored by 顾文旭's avatar 顾文旭

修改session用redis

parent 82fc4f6f
...@@ -12,7 +12,7 @@ use Api\PhpUtils\Log\FileLog; ...@@ -12,7 +12,7 @@ use Api\PhpUtils\Log\FileLog;
class CacheUtil class CacheUtil
{ {
const PREFIX_NONE = ''; const PREFIX_NONE = '';
const PREFIX_BLANK_PREFIX = '';
const EXPIRE_NEVER = 0; const EXPIRE_NEVER = 0;
const EXPIRE_AFTER_FIVE_SECONDS = 5; const EXPIRE_AFTER_FIVE_SECONDS = 5;
const EXPIRE_AFTER_ONE_MINUTE = 60; const EXPIRE_AFTER_ONE_MINUTE = 60;
......
...@@ -52,6 +52,11 @@ class RedisUtil ...@@ -52,6 +52,11 @@ class RedisUtil
private $select = 0; private $select = 0;
private $config = []; private $config = [];
public function getConnectStatus()
{
return $this->connectStatus;
}
public function getConnectServer() public function getConnectServer()
{ {
return $this->connectServer; return $this->connectServer;
......
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