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

Method GetDBIndex

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

Source from the content-addressed store, hash-verified

422}
423
424func (this *SQLiteFileList) GetDBIndex(hash string) uint64 {
425 return fnv.HashString(hash) % CountFileDB
426}
427
428func (this *SQLiteFileList) GetDB(hash string) *SQLiteFileListDB {
429 return this.dbList[fnv.HashString(hash)%CountFileDB]

Callers 1

TestFileList_AddFunction · 0.80

Calls 1

HashStringFunction · 0.92

Tested by 1

TestFileList_AddFunction · 0.64