Skip to content

Commit 3c0e6d1

Browse files
lunnylafriks
authored andcommitted
update cache item_ttl docs (#8222)
1 parent 2836219 commit 3c0e6d1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/content/doc/advanced/config-cheat-sheet.en-us.md

+1
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
293293
- `HOST`: **\<empty\>**: Connection string for `redis` and `memcache`.
294294
- Redis: `network=tcp,addr=127.0.0.1:6379,password=macaron,db=0,pool_size=100,idle_timeout=180`
295295
- Memache: `127.0.0.1:9090;127.0.0.1:9091`
296+
- `ITEM_TTL`: **16h**: Time to keep items in cache if not used, Setting it to 0 disables caching.
296297

297298
## Session (`session`)
298299

docs/content/doc/advanced/config-cheat-sheet.zh-cn.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,12 @@ menu:
144144

145145
## Cache (`cache`)
146146

147-
- `ADAPTER`: 缓存引擎,可以为 `memory`, `redis``memcache`
148-
- `INTERVAL`: 只对内存缓存有效,GC间隔,单位秒。
149-
- `HOST`: 针对redis和memcache有效,主机地址和端口。
147+
- `ADAPTER`: **memory**: 缓存引擎,可以为 `memory`, `redis``memcache`
148+
- `INTERVAL`: **60**: 只对内存缓存有效,GC间隔,单位秒。
149+
- `HOST`: **\<empty\>**: 针对redis和memcache有效,主机地址和端口。
150150
- Redis: `network=tcp,addr=127.0.0.1:6379,password=macaron,db=0,pool_size=100,idle_timeout=180`
151151
- Memache: `127.0.0.1:9090;127.0.0.1:9091`
152+
- `ITEM_TTL`: **16h**: 缓存项目失效时间,设置为 0 则禁用缓存。
152153

153154
## Session (`session`)
154155

0 commit comments

Comments
 (0)