Documentation ¶
Index ¶
- type CacheKeys
- type Cmd
- type Endpoint
- type Operator
- type Redis
- func (r *Redis) Acquire() redis.Conn
- func (r *Redis) Del(ks ...string) error
- func (r *Redis) Exec(cmd *Cmd, others ...*Cmd) (interface{}, error)
- func (r *Redis) Exists(k string) (bool, error)
- func (r *Redis) Get(k string, v any) error
- func (r *Redis) IncrBy(k string, count int64) (int64, error)
- func (r *Redis) Init()
- func (r *Redis) Key(key string) string
- func (r *Redis) Keys(pattern string) ([]string, error)
- func (r *Redis) LivenessCheck() map[string]string
- func (r *Redis) Name() string
- func (r *Redis) RawDel(ks ...string) error
- func (r *Redis) Set(k string, v any) error
- func (r *Redis) SetDefault()
- func (r *Redis) SetEx(k string, v any, exp time.Duration) error
- 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.