============================================================ 第九部分:缓存管理 ============================================================ updateMainCache 更新主缓存系统(兼容性方法,默认IsFinal=true)
(cacheKey string, results []model.SearchResult)
| 1074 | |
| 1075 | // updateMainCache 更新主缓存系统(兼容性方法,默认IsFinal=true) |
| 1076 | func (p *BaseAsyncPlugin) updateMainCache(cacheKey string, results []model.SearchResult) { |
| 1077 | p.updateMainCacheWithFinal(cacheKey, results, true) |
| 1078 | } |
| 1079 | |
| 1080 | // updateMainCacheWithFinal 更新主缓存系统,支持IsFinal参数 |
| 1081 | func (p *BaseAsyncPlugin) updateMainCacheWithFinal(cacheKey string, results []model.SearchResult, isFinal bool) { |
nothing calls this directly
no test coverage detected