()
| 33 | } |
| 34 | |
| 35 | func 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 | |
| 46 | func newRedisClusterCache() *gotest.RCCache { |
| 47 | testData := newTestData() |
no test coverage detected