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 ...clusterPlugin) (*redis.ClusterClient, error)
- func NewClusterClientWithOptions(ctx context.Context, o *Options, plugins ...clusterPlugin) (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 ¶
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
plugins
|
|
contrib/newrelic/go-agent.v3
Package nrredis instruments github.com/go-redis/redis/v8.
|
Package nrredis instruments github.com/go-redis/redis/v8. |
Click to show internal directories.
Click to hide internal directories.