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

Method Read

internal/ttlcache/cache.go:129–132  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

127}
128
129func (this *Cache[T]) Read(key string) (item *Item[T]) {
130 var uint64Key = HashKeyString(key)
131 return this.pieces[uint64Key%this.countPieces].Read(uint64Key)
132}
133
134func (this *Cache[T]) Delete(key string) {
135 var uint64Key = HashKeyString(key)

Callers

nothing calls this directly

Calls 2

HashKeyStringFunction · 0.85
ReadMethod · 0.65

Tested by

no test coverage detected