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

Interface CacheNameExampleCache

internal/cache/cacheNameExample.go:31–35  ·  view source on GitHub ↗

CacheNameExampleCache cache interface

Source from the content-addressed store, hash-verified

29
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}
36
37type cacheNameExampleCache struct {
38 cache cache.Cache

Callers 3

SetMethod · 0.65
GetMethod · 0.65
DelMethod · 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