This commit is contained in:
2021-07-05 11:23:57 +08:00
parent ee23b78872
commit 2ca845a65c
3 changed files with 13 additions and 37 deletions
+2 -2
View File
@@ -55,9 +55,9 @@ class Redis extends Component
$config = $this->get_config();
$name = $config['host'] . ':' . $config['prefix'] . ':' . $config['databases'];
$length = env('REDIS.POOL_LENGTH', 100);
$length = (int)env('REDIS.POOL_LENGTH', 100);
$connections->initConnections('redis', 'redis:' . $name, true, $length);
$connections->initConnections('redis', $name, true, $length);
}