MCPcopy
hub / github.com/fish2018/pansou / updateMainCache

Method updateMainCache

plugin/plugin.go:1076–1078  ·  view source on GitHub ↗

============================================================ 第九部分:缓存管理 ============================================================ updateMainCache 更新主缓存系统(兼容性方法,默认IsFinal=true)

(cacheKey string, results []model.SearchResult)

Source from the content-addressed store, hash-verified

1074
1075// updateMainCache 更新主缓存系统(兼容性方法,默认IsFinal=true)
1076func (p *BaseAsyncPlugin) updateMainCache(cacheKey string, results []model.SearchResult) {
1077 p.updateMainCacheWithFinal(cacheKey, results, true)
1078}
1079
1080// updateMainCacheWithFinal 更新主缓存系统,支持IsFinal参数
1081func (p *BaseAsyncPlugin) updateMainCacheWithFinal(cacheKey string, results []model.SearchResult, isFinal bool) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected