...
|
...
|
@@ -34,7 +34,7 @@ class RedisPool { |
|
|
private function conn(){
|
|
|
$this->client = new \Redis();
|
|
|
|
|
|
$this->client->connect(REDIS_HOST,REDIS_PORT,1);
|
|
|
$this->client->pconnect(REDIS_HOST,REDIS_PORT,5);
|
|
|
// 密码
|
|
|
REDIS_PASSWORD && $this->client->auth(REDIS_PASSWORD);
|
|
|
// 用库4
|
...
|
...
|
|