Documentation ¶
Index ¶
- type RedigoConfig
- type RedigoX
- func (rdx *RedigoX) Del(key string) (bool, error)
- func (rdx *RedigoX) Exists(key string) bool
- func (rdx *RedigoX) Get(key string) ([]byte, error)
- func (rdx *RedigoX) GetCommon(key string) (string, error)
- func (rdx *RedigoX) LikeDeletes(key string) error
- func (rdx *RedigoX) Set(key string, data any, time int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedigoConfig ¶
type RedigoConfig struct { Type string `cnf:",def=node,enum=node|cluster"` Addr string `cnf:",NA"` Pass string `cnf:",NA"` Key string `cnf:",NA"` MaxIdleConn int `cnf:",NA"` MaxOpenConn int `cnf:",NA"` }
Redigo初始化的配置参数
type RedigoX ¶
type RedigoX struct {
// contains filtered or unexported fields
}
Redigo初始化的配置参数
func NewRedigo ¶
func NewRedigo(cf *RedigoConfig) *RedigoX
func (*RedigoX) LikeDeletes ¶
Click to show internal directories.
Click to hide internal directories.