Versions in this module Expand all Collapse all v1 v1.0.0 Apr 27, 2020 Changes in this version + const ErrorClearCache + const KeyNotFound + type Config interface + GetDatabase func() string + GetHost func() string + GetPassword func() string + GetPort func() int + GetUser func() string + type Redis struct + Client *redisClient.Client + func NewRedis(config Config) (*Redis, error) + func (r *Redis) Close() + func (r *Redis) Connect() error + func (r *Redis) Del(key string) error + func (r *Redis) Exist(key string) (bool, error) + func (r *Redis) FlushAll() error + func (r *Redis) Get(key string) (string, error) + func (r *Redis) Set(key, value string, duration time.Duration) error