Versions in this module Expand all Collapse all v0 v0.0.11 Oct 19, 2021 v0.0.10 Sep 28, 2021 Changes in this version + type Cache interface + Add func(key string, value interface{}) error + AddExpire func(key string, value interface{}, d time.Duration) error + Delete func(key string) + Deletes func(keys []string) + Get func(key string) (interface{}, error) + Set func(key string, value interface{}) error + SetExpire func(key string, value interface{}, d time.Duration) error + type ErrorCache struct + type RedisCache struct + func GetRedisCache() *RedisCache + func NewRedisCache() *RedisCache + func (p RedisCache) Add(key string, value interface{}) error + func (p RedisCache) AddExpire(key string, value interface{}, d time.Duration) error + func (p RedisCache) Delete(key string) + func (p RedisCache) Deletes(keys []string) + func (p RedisCache) Get(key string) (interface{}, error) + func (p RedisCache) Set(key string, value interface{}) error + func (p RedisCache) SetExpire(key string, value interface{}, d time.Duration) error