This commit is contained in:
2021-07-05 15:49:37 +08:00
parent 74bcdf257e
commit 1a012150ce
5 changed files with 317 additions and 303 deletions
+1 -2
View File
@@ -53,11 +53,10 @@ class Redis extends Component
$connections = Snowflake::app()->getRedisFromPool();
$config = $this->get_config();
$name = $config['host'] . ':' . $config['prefix'] . ':' . $config['databases'];
$length = (int)env('REDIS.POOL_LENGTH', 100);
$connections->initConnections('redis', $name, true, $length);
$connections->initConnections('Redis:' . $config['host'], true, $length);
}