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 ManagedClient
- func NewManagedClient(ctx context.Context, plugins ...Plugin) (*ManagedClient, error)
- func NewManagedClientWithConfigPath(ctx context.Context, path string, plugins ...Plugin) (*ManagedClient, error)
- func NewManagedClientWithOptions(ctx context.Context, opts *Options, plugins ...Plugin) (*ManagedClient, error)
- type ManagedClusterClient
- func NewManagedClusterClient(ctx context.Context, plugins ...ClusterPlugin) (*ManagedClusterClient, error)
- func NewManagedClusterClientWithConfigPath(ctx context.Context, path string, plugins ...ClusterPlugin) (*ManagedClusterClient, error)
- func NewManagedClusterClientWithOptions(ctx context.Context, opts *Options, plugins ...ClusterPlugin) (*ManagedClusterClient, error)
- 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 ManagedClient ¶
func NewManagedClient ¶
func NewManagedClient(ctx context.Context, plugins ...Plugin) (*ManagedClient, error)
type ManagedClusterClient ¶
type ManagedClusterClient struct { Client *redis.ClusterClient Plugins []ClusterPlugin Options *Options }
func NewManagedClusterClient ¶
func NewManagedClusterClient(ctx context.Context, plugins ...ClusterPlugin) (*ManagedClusterClient, error)
func NewManagedClusterClientWithConfigPath ¶
func NewManagedClusterClientWithConfigPath(ctx context.Context, path string, plugins ...ClusterPlugin) (*ManagedClusterClient, error)
func NewManagedClusterClientWithOptions ¶
func NewManagedClusterClientWithOptions(ctx context.Context, opts *Options, plugins ...ClusterPlugin) (*ManagedClusterClient, error)
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.