MCPcopy
hub / github.com/unkeyed/unkey / Set

Method Set

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

Sets the value for the given key.

(ctx context.Context, key K, value V)

Source from the content-addressed store, hash-verified

19
20 // Sets the value for the given key.
21 Set(ctx context.Context, key K, value V)
22
23 // SetMany sets multiple key-value pairs.
24 SetMany(ctx context.Context, values map[K]V)

Callers 15

TestGetManyFunction · 0.65
TestGetMany_EvictionFunction · 0.65
TestSetManyFunction · 0.65
TestSetNullManyFunction · 0.65
TestSWRManyFunction · 0.65
registerMetricsMethod · 0.65
SetNullMethod · 0.65
SetNullManyMethod · 0.65
SetMethod · 0.65
SetManyMethod · 0.65
RunMethod · 0.65
TestWriteReadFunction · 0.65

Calls

no outgoing calls

Tested by 15

TestGetManyFunction · 0.52
TestGetMany_EvictionFunction · 0.52
TestSetManyFunction · 0.52
TestSetNullManyFunction · 0.52
TestSWRManyFunction · 0.52
RunMethod · 0.52
TestWriteReadFunction · 0.52
TestEvictionFunction · 0.52
TestRefreshFunction · 0.52
TestWithTimeoutFunction · 0.52
TestSession_BindBodyFunction · 0.52