Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
func NewRedisCache ¶
func NewRedisCache(addr string, ttl time.Duration) (*RedisCache, error)
func (*RedisCache) Get ¶
func (r *RedisCache) Get(ctx context.Context, key string, into interface{}) error
func (*RedisCache) Set ¶
func (r *RedisCache) Set(ctx context.Context, key string, value interface{}) error
func (*RedisCache) Stop ¶
func (r *RedisCache) Stop() error
Click to show internal directories.
Click to hide internal directories.