MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / Set

Method Set

internal/cache/cacheNameExample.go:32–32  ·  view source on GitHub ↗
(ctx context.Context, keyNameExample keyTypeExample, valueNameExample valueTypeExample, duration time.Duration)

Source from the content-addressed store, hash-verified

30// CacheNameExampleCache cache interface
31type CacheNameExampleCache interface {
32 Set(ctx context.Context, keyNameExample keyTypeExample, valueNameExample valueTypeExample, duration time.Duration) error
33 Get(ctx context.Context, keyNameExample keyTypeExample) (valueTypeExample, error)
34 Del(ctx context.Context, keyNameExample keyTypeExample) error
35}

Callers 1

SetMethod · 0.65

Implementers 5

redisCachepkg/cache/redis.go
redisClusterCachepkg/cache/redis.go
memoryCachepkg/cache/memory.go
cacheNameExampleCacheinternal/cache/cacheNameExample.go
userExampleCacheinternal/cache/userExample.go

Calls

no outgoing calls

Tested by

no test coverage detected