MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / ExistQuick

Method ExistQuick

internal/caches/list_file_sqlite.go:173–183  ·  view source on GitHub ↗
(hash string)

Source from the content-addressed store, hash-verified

171}
172
173func (this *SQLiteFileList) ExistQuick(hash string) (isReady bool, found bool) {
174 var db = this.GetDB(hash)
175
176 if !db.IsReady() || !db.HashMapIsLoaded() {
177 return
178 }
179
180 isReady = true
181 found = db.hashMap.Exist(hash)
182 return
183}
184
185// CleanPrefix 清理某个前缀的缓存数据
186func (this *SQLiteFileList) CleanPrefix(prefix string) error {

Callers

nothing calls this directly

Calls 4

GetDBMethod · 0.95
IsReadyMethod · 0.65
ExistMethod · 0.65
HashMapIsLoadedMethod · 0.45

Tested by

no test coverage detected