Skip to content

Commit c973642

Browse files
author
苏青安
committed
调整说明
1 parent ec1739e commit c973642

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,17 @@ $data = $cache->set('key','value')
179179
| [文件] FileCache | 文件系统保留,直到过期或手动删除 |
180180
| [数据库] UserDataSource | 用户自行实现 |
181181

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+
182193
---
183194

184195
该库后续将持续更新,添加更多实用功能。欢迎大家提供建议和反馈,我会根据大家的意见实现新的功能,共同提升开发效率。

0 commit comments

Comments
 (0)