Versions in this module Expand all Collapse all v0 v0.1.0 May 12, 2021 Changes in this version + const PluginsRoot + func NewClient(ctx context.Context, plugins ...Plugin) (*redis.Client, error) + func NewClientWithOptions(ctx context.Context, o *Options, plugins ...Plugin) (client *redis.Client, err error) + func NewClusterClient(ctx context.Context, plugins ...clusterPlugin) (*redis.ClusterClient, error) + func NewClusterClientWithOptions(ctx context.Context, o *Options, plugins ...clusterPlugin) (client *redis.ClusterClient, err error) + type ClientOptions struct + Addr string + DB int + Network string + type ClusterOptions struct + Addrs []string + MaxRedirects int + ReadOnly bool + RouteByLatency bool + RouteRandomly bool + type Options struct + Client ClientOptions + Cluster ClusterOptions + DialTimeout time.Duration + IdleCheckFrequency time.Duration + IdleTimeout time.Duration + MaxConnAge time.Duration + MaxRetries int + MaxRetryBackoff time.Duration + MinIdleConns int + MinRetryBackoff time.Duration + Password string + PoolSize int + PoolTimeout time.Duration + ReadTimeout time.Duration + Sentinel SentinelOptions + WriteTimeout time.Duration + func NewOptions() (*Options, error) + func NewOptionsWithPath(path string) (opts *Options, err error) + type Plugin func(context.Context, *redis.Client) error + type SentinelOptions struct + Addrs []string + MasterName string + Password string