Documentation ¶
Index ¶
- Constants
- 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 ...clusterExt) (*redis.ClusterClient, error)
- func NewClusterClientWithOptions(ctx context.Context, o *Options, plugins ...clusterExt) (client *redis.ClusterClient, err error)
- type ClientOptions
- type ClusterOptions
- type Options
- type Plugin
- type SentinelOptions
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
func NewClientWithOptions ¶
func NewClusterClient ¶
Types ¶
type ClientOptions ¶
type ClusterOptions ¶
type Options ¶
type Options struct { Sentinel SentinelOptions Password string MaxRetries int MinRetryBackoff time.Duration MaxRetryBackoff time.Duration DialTimeout time.Duration ReadTimeout time.Duration WriteTimeout time.Duration PoolSize int MinIdleConns int MaxConnAge time.Duration PoolTimeout time.Duration IdleTimeout time.Duration IdleCheckFrequency time.Duration Client ClientOptions Cluster ClusterOptions }
func NewOptions ¶
func NewOptionsWithPath ¶
type SentinelOptions ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.