Documentation ¶
Overview ¶
*
- Created by IDEA.
- User: godsoul
*
- Created by IDEA.
- User: godsoul
Index ¶
- type Rds
- func (r *Rds) BLPOP(key string, d int) []string
- func (r *Rds) Close()
- func (r *Rds) Del(k string) error
- func (r *Rds) Exists(k string) bool
- func (r *Rds) Expire(k string, d int) error
- func (r *Rds) Get(k string) (string, error)
- func (r *Rds) GetHashList(keys map[string][]string) (map[string]map[string]interface{}, error)
- func (r *Rds) HGet(key, field string) (interface{}, error)
- func (r *Rds) HGetAll(key string) map[string]string
- func (r *Rds) HINCRBY(key, field string, value int) (int, error)
- func (r *Rds) HMGet(key string, args ...string) ([]interface{}, error)
- func (r *Rds) HMSet(key string, args interface{}) error
- func (r *Rds) HSet(key, field string, value interface{}) error
- func (r *Rds) Incr(key string) (int, error)
- func (r *Rds) LPOP(key string) (interface{}, error)
- func (r *Rds) LPush(key, value string) error
- func (r *Rds) LRange(key string, begin, end int) ([]interface{}, error)
- func (r *Rds) Map2Struct(key string, obj interface{}) error
- func (r *Rds) RPush(key, value string) error
- func (r *Rds) SAdd(key, value string) error
- func (r *Rds) SCard(key string) (int, error)
- func (r *Rds) SMembers_Ints(key string) ([]int, error)
- func (r *Rds) SMembers_Strings(key string) ([]string, error)
- func (r *Rds) SREM(key, value string) error
- func (r *Rds) Scard(key string) int
- func (r *Rds) Set(k string, v interface{}) error
- func (r *Rds) SetEx(k string, exp int, v interface{}) error
- func (r *Rds) SisMember(key string, m int) (bool, error)
- func (r *Rds) ZAdd(key string, score interface{}, member string) error
- func (r *Rds) ZCard(key string) (int, error)
- func (r *Rds) ZRANGEBYSCORE(key, min, max string, offset, count int) ([]interface{}, error)
- func (r *Rds) ZREM(key, value string) error
- func (r *Rds) ZREVRANK(key string, s int) (int, error)
- type RdsPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rds ¶
对常用命令的二次封装
func (*Rds) GetHashList ¶
func (*Rds) Map2Struct ¶
func (*Rds) ZRANGEBYSCORE ¶
Click to show internal directories.
Click to hide internal directories.