Versions in this module Expand all Collapse all v1 v1.1.0 Jul 23, 2026 Changes in this version + var Nil = goredis.Nil + type Cmdable = goredis.Cmdable + type UniversalClient = goredis.UniversalClient v1.0.0 Jul 18, 2026 Changes in this version + type Client struct + func Connect(ctx context.Context, opts ...Option) (*Client, error) + func (c *Client) Close() error + func (c *Client) Healthy(ctx context.Context) bool + func (c *Client) Redis() goredis.UniversalClient + type Logger interface + Printf func(ctx context.Context, format string, args ...any) + type Observer interface + ObserveCommand func(ctx context.Context, name string, dur time.Duration, err error) + ObserveDial func(ctx context.Context, network, addr string, dur time.Duration, err error) + type Option func(*config) + func WithAddr(addrs ...string) Option + func WithCluster(addrs ...string) Option + func WithDB(db int) Option + func WithLogger(l Logger) Option + func WithObserver(o Observer) Option + func WithPassword(password string) Option + func WithPool(size int) Option + func WithRetry(attempts int, min, max time.Duration) Option + func WithSentinel(masterName string, addrs ...string) Option + func WithTLS(cfg *tls.Config) Option + func WithTimeouts(dial, read, write time.Duration) Option