Documentation ¶
Index ¶
- Constants
- func ConfigAdd(path string)
- func NewClient(ctx context.Context, plugins ...Plugin) (*redis.Client, error)
- func NewClientWithConfigPath(ctx context.Context, path string, 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 NewClusterClientWithConfigPath(ctx context.Context, path string, plugins ...ClusterPlugin) (*redis.ClusterClient, error)
- func NewClusterClientWithOptions(ctx context.Context, o *Options, plugins ...ClusterPlugin) (client *redis.ClusterClient, err error)
- type ClientOptions
- type ClusterOptions
- type ClusterPlugin
- type Options
- type Plugin
- type SentinelOptions
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
func NewClientWithConfigPath ¶
func NewClientWithOptions ¶
func NewClusterClient ¶
func NewClusterClient(ctx context.Context, plugins ...ClusterPlugin) (*redis.ClusterClient, error)
func NewClusterClientWithConfigPath ¶
func NewClusterClientWithConfigPath(ctx context.Context, path string, plugins ...ClusterPlugin) (*redis.ClusterClient, error)
func NewClusterClientWithOptions ¶
func NewClusterClientWithOptions(ctx context.Context, o *Options, plugins ...ClusterPlugin) (client *redis.ClusterClient, err error)
Types ¶
type ClientOptions ¶
type ClusterOptions ¶
type ClusterPlugin ¶
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.