(client redis.UniversalClient, cfg config.Cache)
| 37 | const redisTmpFilePrefix = "chproxyRedisTmp" |
| 38 | |
| 39 | func 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 | |
| 49 | func (r *redisCache) Close() error { |
| 50 | return r.client.Close() |
no outgoing calls