MCPcopy
hub / github.com/openimsdk/open-im-server / Get

Method Get

pkg/localcache/cache.go:27–27  ·  view source on GitHub ↗
(ctx context.Context, key string, fetch func(ctx context.Context) (V, error))

Source from the content-addressed store, hash-verified

25
26type Cache[V any] interface {
27 Get(ctx context.Context, key string, fetch func(ctx context.Context) (V, error)) (V, error)
28 GetLink(ctx context.Context, key string, fetch func(ctx context.Context) (V, error), link ...string) (V, error)
29 Del(ctx context.Context, key ...string)
30 DelLocal(ctx context.Context, key ...string)

Callers 15

seqRedisToMongoFunction · 0.65
doObjectFunction · 0.65
fetchReleaseDataMethod · 0.65
GetLinkMethod · 0.65
TestNameFunction · 0.65
getConversationIDsMethod · 0.65
GetConversationMethod · 0.65
getUserOnlinePlatformMethod · 0.65
getGroupMemberIDsMethod · 0.65
GetGroupMemberMethod · 0.65
GetGroupInfoMethod · 0.65

Calls

no outgoing calls

Tested by 1

TestNameFunction · 0.52