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

Method GetDB

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

Source from the content-addressed store, hash-verified

426}
427
428func (this *SQLiteFileList) GetDB(hash string) *SQLiteFileListDB {
429 return this.dbList[fnv.HashString(hash)%CountFileDB]
430}
431
432func (this *SQLiteFileList) HashMapIsLoaded() bool {
433 for _, db := range this.dbList {

Callers 6

AddMethod · 0.95
ExistMethod · 0.95
ExistQuickMethod · 0.95
IncreaseHitMethod · 0.95
removeMethod · 0.95
TestFileListHashMap_LoadFunction · 0.80

Calls 1

HashStringFunction · 0.92

Tested by 1

TestFileListHashMap_LoadFunction · 0.64