We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec1739e commit c973642Copy full SHA for c973642
README.md
@@ -179,6 +179,17 @@ $data = $cache->set('key','value')
179
| [文件] FileCache | 文件系统保留,直到过期或手动删除 |
180
| [数据库] UserDataSource | 用户自行实现 |
181
182
+#### Redis 配置
183
+- cluster: 是否集群 `bool` `默认 false`
184
+- hosts: 集群主机 `array` `cluster 为 true 必填`
185
+- host: 主机 `string` `cluster 为 false 必填`
186
+- port: 端口 `int` `默认 6379`
187
+- password: 密码 `string` `默认 null`
188
+- db: 数据库 `int` `非必须,不传则等于根据 redis 配置选择`
189
+- ttl: 过期时间 `int` `默认 3600`
190
+- timeout: 超时时间 `float` `默认 2.0`
191
+- read_timeout: 读取超时时间 `float` `默认 2.0`
192
+
193
---
194
195
该库后续将持续更新,添加更多实用功能。欢迎大家提供建议和反馈,我会根据大家的意见实现新的功能,共同提升开发效率。
0 commit comments