Versions in this module Expand all Collapse all v1 v1.2.0 Jul 21, 2023 Changes in this version + var ErrorCacheMiss = errors.New("cache miss error") + type CachedResponse struct + Data []byte + Header http.Header + Status int + type ICacheStore interface + Delete func(key string) error + Get func(key string, value *CachedResponse) error + Set func(key string, value *CachedResponse, expire time.Duration) error + type RedisStore struct + RedisClient *redis.Client + func NewRedisStore(redisClient *redis.Client) *RedisStore + func (store *RedisStore) Delete(key string) error + func (store *RedisStore) Get(key string, value *CachedResponse) error + func (store *RedisStore) Set(key string, value *CachedResponse, expire time.Duration) error