Versions in this module Expand all Collapse all v0 v0.0.2 Dec 29, 2024 v0.0.1 Dec 28, 2024 Changes in this version + var ErrNotConfigured = errors.New("Redis is not configured") + func GetRedisClient(conf *RedisConfig) (redis.UniversalClient, error) + type RedisConfig struct + Address string + ClusterAddresses []string + DB int + DialTimeout int + MasterName string + MaxRedirects *int + Password string + PoolSize int + PoolTimeout time.Duration + ReadTimeout int + SentinelAddresses []string + SentinelPassword string + SentinelUsername string + TLS *xtls.Config + UseTLS bool + Username string + WriteTimeout int + func (r *RedisConfig) GetMaxRedirects() int + func (r *RedisConfig) IsConfigured() bool