MCPcopy
hub / github.com/grafana/dskit / SetMultiAsync

Method SetMultiAsync

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

SetMultiAsync enqueues operations to store a keys and values into a cache. In case any underlying async operations fail, the errors will be tracked/logged.

(data map[string][]byte, ttl time.Duration)

Source from the content-addressed store, hash-verified

42 // SetMultiAsync enqueues operations to store a keys and values into a cache. In case
43 // any underlying async operations fail, the errors will be tracked/logged.
44 SetMultiAsync(data map[string][]byte, ttl time.Duration)
45
46 // Set stores a key and value into a cache.
47 Set(ctx context.Context, key string, value []byte, ttl time.Duration) error

Callers 11

SetMultiAsyncMethod · 0.65
SetMultiAsyncMethod · 0.65
SetMultiAsyncMethod · 0.65
SetMultiAsyncMethod · 0.65
SetMultiAsyncMethod · 0.65
TestLRUCache_EvictionsFunction · 0.65
TestSnappyCacheFunction · 0.65

Implementers 7

Versionedcache/versioned.go
MemcachedClientcache/memcached_client.go
LRUCachecache/lru.go
MockCachecache/mock.go
SpanlessTracingCachecache/tracing.go
SnappyCachecache/compression.go

Calls

no outgoing calls

Tested by 6

TestLRUCache_EvictionsFunction · 0.52
TestSnappyCacheFunction · 0.52