MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / newRedisCache

Function newRedisCache

cache/redis_cache.go:39–47  ·  view source on GitHub ↗
(client redis.UniversalClient, cfg config.Cache)

Source from the content-addressed store, hash-verified

37const redisTmpFilePrefix = "chproxyRedisTmp"
38
39func newRedisCache(client redis.UniversalClient, cfg config.Cache) *redisCache {
40 redisCache := &redisCache{
41 name: cfg.Name,
42 expire: time.Duration(cfg.Expire),
43 client: client,
44 }
45
46 return redisCache
47}
48
49func (r *redisCache) Close() error {
50 return r.client.Close()

Callers 2

NewAsyncCacheFunction · 0.85
getRedisCacheAndServerFunction · 0.85

Calls

no outgoing calls

Tested by 1

getRedisCacheAndServerFunction · 0.68