MCPcopy
hub / github.com/grafana/tempo / FetchKey

Method FetchKey

pkg/cache/cache.go:46–46  ·  view source on GitHub ↗
(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

44 // Remove(ctx context.Context, key []string)
45 Fetch(ctx context.Context, keys []string) (found []string, bufs [][]byte, missing []string)
46 FetchKey(ctx context.Context, key string) (buf []byte, found bool)
47 // Release allows compliant implementations to reclaim buffers back into a pool for memory efficiency
48 Release([]byte)
49 Stop()

Callers 5

ReadMethod · 0.65
ReadRangeMethod · 0.65
fetchBytesMethod · 0.65
testMemcacheFunction · 0.65
TestRedisCacheFunction · 0.65

Implementers 3

Memcachedpkg/cache/memcached.go
RedisCachepkg/cache/redis_cache.go
mockClientpkg/util/test/cache.go

Calls

no outgoing calls

Tested by 2

testMemcacheFunction · 0.52
TestRedisCacheFunction · 0.52