MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / Get

Method Get

internal/cache/userExample.go:29–29  ·  view source on GitHub ↗
(ctx context.Context, id uint64)

Source from the content-addressed store, hash-verified

27type UserExampleCache interface {
28 Set(ctx context.Context, id uint64, data *model.UserExample, duration time.Duration) error
29 Get(ctx context.Context, id uint64) (*model.UserExample, error)
30 MultiGet(ctx context.Context, ids []uint64) (map[uint64]*model.UserExample, error)
31 MultiSet(ctx context.Context, data []*model.UserExample, duration time.Duration) error
32 Del(ctx context.Context, id uint64) error

Callers 4

GetMethod · 0.65
GetByIDMethod · 0.65

Implementers 1

userExampleCacheinternal/cache/userExample.go

Calls

no outgoing calls

Tested by 2