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

Method Fetch

pkg/cache/cache.go:45–45  ·  view source on GitHub ↗

TODO: both cached backend clients support deletion. Should we implement? Remove(ctx context.Context, key []string)

(ctx context.Context, keys []string)

Source from the content-addressed store, hash-verified

43 // TODO: both cached backend clients support deletion. Should we implement?
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)

Callers 15

TestTagsCachedMetricsFunction · 0.65
TestSearchAccessesCacheFunction · 0.65
TestSearchCachedMetricsFunction · 0.65
FetchMethod · 0.65
SearchMethod · 0.65
queryRangeWALBlockMethod · 0.65
SearchBlockMethod · 0.65

Implementers 3

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

Calls

no outgoing calls

Tested by 14

TestTagsCachedMetricsFunction · 0.52
TestSearchAccessesCacheFunction · 0.52
TestSearchCachedMetricsFunction · 0.52
testCacheSingleFunction · 0.52
testCacheMultipleFunction · 0.52
testCacheMissFunction · 0.52
testMemcacheFunction · 0.52
testMemcacheFailingFunction · 0.52