Versions in this module Expand all Collapse all v6 v6.0.0 Apr 17, 2017 Changes in this version + const DefaultRedisAddr + const DefaultRedisIdleTimeout + const DefaultRedisMaxAgeSeconds + const DefaultRedisNetwork + var ErrKeyNotFound = errors.New("Key '%s' doesn't found") + var ErrRedisClosed = errors.New("Redis is already closed") + type Config struct + Addr string + Database string + IdleTimeout time.Duration + MaxActive int + MaxAgeSeconds int + MaxIdle int + Network string + Password string + Prefix string + func DefaultConfig() Config + func (c Config) Merge(cfg []Config) (config Config) + func (c Config) MergeSingle(cfg Config) (config Config) + type Service struct + Config *Config + Connected bool + func New(cfg ...Config) *Service + func (r *Service) CloseConnection() error + func (r *Service) Connect() + func (r *Service) Delete(key string) error + func (r *Service) Get(key string) (interface{}, error) + func (r *Service) GetAll(key string) (map[string]string, error) + func (r *Service) GetAllKeysByPrefix(prefix string) ([]string, error) + func (r *Service) GetBytes(key string) ([]byte, error) + func (r *Service) GetInt(key string) (int, error) + func (r *Service) GetString(key string) (string, error) + func (r *Service) GetStringMap(key string) (map[string]string, error) + func (r *Service) PingPong() (bool, error) + func (r *Service) Set(key string, value []byte) (err error)