Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
New returns new redis.UniversalClient. The type of the returned client depends on the following conditions:
1. If the MasterName option is specified, a sentinel-backed FailoverClient is returned. 2. if the number of Addrs is two or more, a ClusterClient is returned. 3. Otherwise, a single-node Client is returned.
func (*Client) ContextWithTimeout ¶
func (c *Client) ContextWithTimeout() (context.Context, context.CancelFunc)
type ClientOpt ¶
type ClientOpt func(opts *clientOpts)
func WithMasterName ¶
func WithPassword ¶
func WithTLSConfig ¶
func WithTimeout ¶
func WithTraceProvider ¶
func WithTraceProvider(traceProvider trace.TracerProvider) ClientOpt
Click to show internal directories.
Click to hide internal directories.