From d449934a9fcf67d43f86bea84a91163299d176b7 Mon Sep 17 00:00:00 2001 From: Jiun Lee Date: Fri, 6 Oct 2023 16:07:15 +0800 Subject: [PATCH] Update cache.md --- .../zh/docs/hertz/tutorials/basic-feature/middleware/cache.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/zh/docs/hertz/tutorials/basic-feature/middleware/cache.md b/content/zh/docs/hertz/tutorials/basic-feature/middleware/cache.md index 06bdf5f3c5..ad8a34c807 100644 --- a/content/zh/docs/hertz/tutorials/basic-feature/middleware/cache.md +++ b/content/zh/docs/hertz/tutorials/basic-feature/middleware/cache.md @@ -165,7 +165,7 @@ func main() { | WithOnMissCache | nil | 用于设置缓存未命中的回调函数 | | WithBeforeReplyWithCache | nil | 用于设置返回缓存响应前的回调函数 | | WithOnShareSingleFlight | nil | 用于设置请求共享 SingleFlight 结果时的回调函数 | -| WithSingleFlightForgetTimeout | 0 | 用于设置 SingleFlight 的超时时间 | +| WithSingleFlightForgetTimeout | 0 | 设置 SingleFlight 的超时时间,以控制并发操作的行为,确保请求在一定时间内被处理或者超时被取消 | | WithPrefixKey | "" | 用于设置缓存响应 Key 的前缀 | | WithoutHeader | false | 用于设置是否需要缓存响应头 |