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

Function newRedisCache

pkg/cache/redis_test.go:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func newRedisCache() *gotest.Cache {
36 testData := newTestData()
37 c := gotest.NewCache(testData)
38 cachePrefix := ""
39 c.ICache = NewRedisCache(c.RedisClient, cachePrefix, encoding.JSONEncoding{}, func() interface{} {
40 return &redisUser{}
41 })
42
43 return c
44}
45
46func newRedisClusterCache() *gotest.RCCache {
47 testData := newTestData()

Callers 2

TestRedisCacheFunction · 0.85
TestRedisCacheErrorFunction · 0.85

Calls 3

NewCacheFunction · 0.92
newTestDataFunction · 0.85
NewRedisCacheFunction · 0.85

Tested by

no test coverage detected