docs(recall): Step 6.5 缓存写回注释同步为 60s TTL(写路径 Invalidate + TTL 双保险)

This commit is contained in:
小唯
2026-10-13 02:12:26 +08:00
parent 5b9f75cc7f
commit 6e21eef6da
+2 -1
View File
@@ -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)
}