We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 358813c commit 1b70f33Copy full SHA for 1b70f33
1 file changed
src/config/think-cache.php
@@ -18,13 +18,13 @@
18
'tag_expire' => 86400 * 30,
19
// 缓存标签前缀
20
'tag_prefix' => 'tag:',
21
- // 连接池配置(仅在swow/swoole驱动下有效)
+ // 连接池配置
22
'pool' => [
23
- 'max_connections' => 5,
24
- 'min_connections' => 1,
25
- 'wait_timeout' => 3,
26
- 'idle_timeout' => 60,
27
- 'heartbeat_interval' => 50,
+ 'max_connections' => 5, // 最大连接数
+ 'min_connections' => 1, // 最小连接数
+ 'wait_timeout' => 3, // 从连接池获取连接等待超时时间
+ 'idle_timeout' => 60, // 连接最大空闲时间,超过该时间会被回收
+ 'heartbeat_interval' => 50, // 心跳检测间隔,需要小于60秒
28
],
29
30
// 文件缓存
0 commit comments