Documentation
¶
Index ¶
- Variables
- type Client
- type Option
- func WithAddrs(addrs ...string) Option
- func WithDbIndex(index uint) Option
- func WithDialTimeout(timeout uint) Option
- func WithPassword(password string) Option
- func WithPoolSize(poolSize uint) Option
- func WithReadTimeout(timeout uint) Option
- func WithUsername(username string) Option
- func WithWriteTimeout(timeout uint) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var Nil = redis.Nil
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { redis.UniversalClient // contains filtered or unexported fields }
Client redis客户端
type Option ¶
type Option func(opts *options)
func WithDbIndex ¶
func WithDialTimeout ¶
func WithPassword ¶
func WithPoolSize ¶
func WithReadTimeout ¶
func WithUsername ¶ added in v0.1.40
func WithWriteTimeout ¶
Click to show internal directories.
Click to hide internal directories.