Versions in this module Expand all Collapse all v0 v0.0.21 May 18, 2026 Changes in this version + const DefaultDialTimeout + const DefaultReadTimeout + const DefaultWriteTimeout + func BuildTLSConfig(cfg *TLSConfig) (*tls.Config, error) + func NewClient(ctx context.Context, cfg *Config) (goredis.UniversalClient, error) + type Config struct + Addr string + ClusterMode bool + DB int + DialTimeout time.Duration + Password string + ReadTimeout time.Duration + SentinelConfig *SentinelConfig + SentinelTLS *TLSConfig + TLS *TLSConfig + Username string + WriteTimeout time.Duration + func (c *Config) Validate() error + type SentinelConfig struct + MasterName string + SentinelAddrs []string + type TLSConfig struct + CACert []byte + InsecureSkipVerify bool