MCPcopy Create free account
hub / github.com/cortexproject/cortex / RedisCache

Struct RedisCache

pkg/chunk/cache/redis_cache.go:18–23  ·  view source on GitHub ↗

RedisCache type caches chunks in redis

Source from the content-addressed store, hash-verified

16
17// RedisCache type caches chunks in redis
18type RedisCache struct {
19 name string
20 redis *RedisClient
21 logger log.Logger
22 requestDuration *instr.HistogramCollector
23}
24
25// NewRedisCache creates a new RedisCache
26func NewRedisCache(name string, redisClient *RedisClient, reg prometheus.Registerer, logger log.Logger) *RedisCache {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected