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

Method SetCacheWithNotFound

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

Source from the content-addressed store, hash-verified

31 MultiGet(ctx context.Context, keys []string, valueMap interface{}) error
32 Del(ctx context.Context, keys ...string) error
33 SetCacheWithNotFound(ctx context.Context, key string) error
34}
35
36// Set data

Callers 6

SetCacheWithNotFoundFunction · 0.65
TestMemoryCacheFunction · 0.65
TestMemoryCacheErrorFunction · 0.65
TestRedisCacheFunction · 0.65
TestRedisClusterCacheFunction · 0.65
SetPlaceholderMethod · 0.65

Implementers 3

redisCachepkg/cache/redis.go
redisClusterCachepkg/cache/redis.go
memoryCachepkg/cache/memory.go

Calls

no outgoing calls

Tested by 4

TestMemoryCacheFunction · 0.52
TestMemoryCacheErrorFunction · 0.52
TestRedisCacheFunction · 0.52
TestRedisClusterCacheFunction · 0.52