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

Method indexForKey

internal/caches/partial_ranges_queue.go:142–144  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

140}
141
142func (this *PartialRangesQueue) indexForKey(filename string) int {
143 return int(fnv.HashString(filename) % partialRangesQueueSharding)
144}

Callers 4

PutMethod · 0.95
GetMethod · 0.95
DeleteMethod · 0.95
DumpMethod · 0.95

Calls 1

HashStringFunction · 0.92

Tested by

no test coverage detected