Documentation ¶
Index ¶
- func Close(conn redis.Conn) error
- func Connect() (redis.Conn, error)
- func GetRedisConn() (redis.Conn, error)
- type Proxy
- func (rp *Proxy) Del(key string) (int64, error)
- func (rp *Proxy) Exist(key string) (bool, error)
- func (rp *Proxy) Expire(key string, expire int64) (bool, error)
- func (rp *Proxy) Get(key string) (string, error)
- func (rp *Proxy) Incrby(key string, v int64) (int64, error)
- func (rp Proxy) IsEmpty() bool
- func (rp *Proxy) ReleaseDistributedLock(key string, v string) (bool, error)
- func (rp *Proxy) Set(key string, value string) error
- func (rp *Proxy) SetEx(key string, value string, ex int64) error
- func (rp *Proxy) TryGetDistributedLock(key string, v string) (bool, error)
- func (rp *Proxy) ZAdd(key string, score float64, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedisConn ¶
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) ReleaseDistributedLock ¶
func (*Proxy) TryGetDistributedLock ¶
Click to show internal directories.
Click to hide internal directories.