Documentation ¶
Overview ¶
Package redis provides implementation of Go API for redis interface
Index ¶
- Variables
- type Conn
- type Deleter
- type Getter
- type IntCmd
- type Lister
- type Option
- func WithAddrs(addrs ...string) Option
- func WithClusterSlots(f func() ([]redis.ClusterSlot, error)) Option
- func WithDB(db int) Option
- func WithDialTimeout(dur string) Option
- func WithDialer(der func(ctx context.Context, addr, port string) (net.Conn, error)) Option
- func WithIdleCheckFrequency(dur string) Option
- func WithIdleTimeout(dur string) Option
- func WithInitialPingDuration(dur string) Option
- func WithInitialPingTimeLimit(lim string) Option
- func WithKeyPrefix(prefix string) Option
- func WithMaximumConnectionAge(dur string) Option
- func WithMaximumRetryBackoff(dur string) Option
- func WithMinimumIdleConnection(minIdleConns int) Option
- func WithMinimumRetryBackoff(dur string) Option
- func WithOnConnectFunction(f func(*redis.Conn) error) Option
- func WithOnNewNodeFunction(f func(*redis.Client)) Option
- func WithPassword(password string) Option
- func WithPoolSize(poolSize int) Option
- func WithPoolTimeout(dur string) Option
- func WithReadOnlyFlag(readOnly bool) Option
- func WithReadTimeout(dur string) Option
- func WithRedirectLimit(maxRedirects int) Option
- func WithRetryLimit(maxRetries int) Option
- func WithRouteByLatencyFlag(routeByLatency bool) Option
- func WithRouteRandomlyFlag(routeRandomly bool) Option
- func WithTLSConfig(cfg *tls.Config) Option
- func WithWriteTimeout(dur string) Option
- type Redis
- type Setter
- type StatusCmd
- type StringCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Nil = redis.Nil
)
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*redisClient) error
func WithClusterSlots ¶
func WithClusterSlots(f func() ([]redis.ClusterSlot, error)) Option
func WithDialTimeout ¶
func WithDialer ¶
func WithIdleCheckFrequency ¶
func WithIdleTimeout ¶
func WithInitialPingDuration ¶
func WithKeyPrefix ¶
func WithMaximumRetryBackoff ¶
func WithMinimumRetryBackoff ¶
func WithOnNewNodeFunction ¶
func WithPassword ¶
func WithPoolSize ¶
func WithPoolTimeout ¶
func WithReadOnlyFlag ¶
func WithReadTimeout ¶
func WithRedirectLimit ¶
func WithRetryLimit ¶
func WithRouteByLatencyFlag ¶
func WithRouteRandomlyFlag ¶
func WithTLSConfig ¶
func WithWriteTimeout ¶
Click to show internal directories.
Click to hide internal directories.