Documentation
¶
Index ¶
- Variables
- func Del(key string) error
- func Expire(key string, dur time.Duration) error
- func Get(key string) (string, error)
- func HashDel(hk, key string) error
- func HashGet(hk, key string) (string, error)
- func HashGetAll(hk string) (map[string]string, error)
- func HashMSet(hk string, value map[string]interface{}) error
- func HashSet(hk, key string, value interface{}) error
- func Increase(key string) error
- func InitRedisLock()
- func SAdd(key string, member string) error
- func SMembers(key string) ([]string, error)
- func SRem(key string, member string) error
- func Set(key, val string, expire int) error
- type Adapter
- type Redis
- func (r *Redis) Close()
- func (r *Redis) Connect()
- func (r *Redis) Del(key string) error
- func (r *Redis) Expire(key string, dur time.Duration) error
- func (r *Redis) Get(key string) (string, error)
- func (r *Redis) HashDel(hk, key string) error
- func (r *Redis) HashGet(hk, key string) (string, error)
- func (r *Redis) HashGetAll(hk string) (map[string]string, error)
- func (r *Redis) HashMSet(hk string, params map[string]interface{}) error
- func (r *Redis) HashSet(hk, key string, value interface{}) error
- func (r *Redis) Increase(key string) error
- func (r *Redis) SAdd(key string, member string) error
- func (r *Redis) SMembers(key string) ([]string, error)
- func (r *Redis) SRem(key string, member string) error
- func (r *Redis) Set(key string, val string, expire int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var RedisLock *redsync.Redsync
Functions ¶
func InitRedisLock ¶
func InitRedisLock()
Types ¶
type Adapter ¶
type Adapter interface {
Connect()
Get(key string) (string, error)
Set(key string, val string, expire int) error
Del(key string) error
HashGet(hk, key string) (string, error)
HashDel(hk, key string) error
Increase(key string) error
Expire(key string, dur time.Duration) error
SMembers(key string) ([]string, error)
HashGetAll(hk string) (map[string]string, error)
HashSet(hk, key string, value interface{}) error
SAdd(key string, member string) error
SRem(key string, member string) error
HashMSet(hk string, pairs map[string]interface{}) error
Close()
}
Click to show internal directories.
Click to hide internal directories.