Documentation ¶
Index ¶
- type Cmd
- type Endpoint
- type Operator
- type Redis
- func (r *Redis) Exec(cmd *Cmd, others ...*Cmd) (interface{}, error)
- func (r *Redis) Get() redis.Conn
- func (r *Redis) Init()
- func (r *Redis) Key(key string) string
- func (r *Redis) LivenessCheck() map[string]string
- func (r *Redis) SetDefault()
- func (r *Redis) WithDBIndex(n int) *Redis
- func (r *Redis) WithPrefix(prefix string) *Redis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { Endpoint types.Endpoint `env:""` Wait bool Prefix string // contains filtered or unexported fields }
func (*Endpoint) LivenessCheck ¶
func (*Endpoint) SetDefault ¶
func (r *Endpoint) SetDefault()
type Redis ¶
type Redis struct { Protocol string Host string Port int Password types.Password ConnectTimeout types.Duration WriteTimeout types.Duration ReadTimeout types.Duration IdleTimeout types.Duration MaxActive int MaxIdle int Wait bool DB int Prefix string // contains filtered or unexported fields }
func (*Redis) LivenessCheck ¶
func (*Redis) SetDefault ¶
func (r *Redis) SetDefault()
func (*Redis) WithDBIndex ¶ added in v1.0.0
func (*Redis) WithPrefix ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.