From 6e21eef6da4a0b7b6cc6ba979e7d63d2258da5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=94=AF?= Date: Tue, 13 Oct 2026 02:12:26 +0800 Subject: [PATCH] =?UTF-8?q?docs(recall):=20Step=206.5=20=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=86=99=E5=9B=9E=E6=B3=A8=E9=87=8A=E5=90=8C=E6=AD=A5=E4=B8=BA?= =?UTF-8?q?=2060s=20TTL=EF=BC=88=E5=86=99=E8=B7=AF=E5=BE=84=20Invalidate?= =?UTF-8?q?=20+=20TTL=20=E5=8F=8C=E4=BF=9D=E9=99=A9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go/internal/storage/recall.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go/internal/storage/recall.go b/go/internal/storage/recall.go index 4bd5004..8cfcdb2 100644 --- a/go/internal/storage/recall.go +++ b/go/internal/storage/recall.go @@ -424,7 +424,8 @@ func (p *RecallPipeline) recallUncached(query, namespace string, topK int, diver } results = deduped - // Step 6.5: 写搜索缓存(§2.6 — TTL 1h,下次相同 query+topK+diversity 直接返回) + // Step 6.5: 写搜索缓存(§2.6 — t_1c12e000 起 TTL=60s,下次相同 query+topK+diversity + // 直接返回;写路径落库后会 Invalidate 本 namespace,陈旧窗口上限=60s 双保险) if SearchCacheInstance != nil { SearchCacheInstance.Set(query, namespace, topK, diversity, results) }