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

Method Set

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

Set stores a key and value into a cache.

(ctx context.Context, key string, value []byte, ttl time.Duration)

Source from the content-addressed store, hash-verified

45
46 // Set stores a key and value into a cache.
47 Set(ctx context.Context, key string, value []byte, ttl time.Duration) error
48
49 // Add stores a key and value into a cache only if it does not already exist. If the
50 // item was not stored because an entry already exists in the cache, ErrNotStored will

Callers 15

SetMethod · 0.65
TestMemcachedClient_SetFunction · 0.65
TestMemcachedClient_AddFunction · 0.65
SetMethod · 0.65
SetMethod · 0.65
SetMethod · 0.65
SetMethod · 0.65
TestLRUCache_SetAddFunction · 0.65
TestErrorFunction · 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