MCPcopy
hub / github.com/kubernetes-sigs/headlamp / Get

Method Get

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

Source from the content-addressed store, hash-verified

32 SetWithTTL(ctx context.Context, key string, value T, ttl time.Duration) error
33 Delete(ctx context.Context, key string) error
34 Get(ctx context.Context, key string) (T, error)
35 GetAll(ctx context.Context, selectFunc Matcher) (map[string]T, error)
36 UpdateTTL(ctx context.Context, key string, ttl time.Duration) error
37 SetOnEvicted(f func(key string, value T))

Callers 15

testCacheFunction · 0.65
ParseClusterAndTokenFunction · 0.65
GetNewTokenFunction · 0.65
tryProxyAuthFunction · 0.65
TestHandleMe_SuccessFunction · 0.65
IsSecureContextFunction · 0.65

Implementers 1

MockCachebackend/pkg/k8cache/cacheStore_test.go

Calls

no outgoing calls