Documentation ¶
Index ¶
- func InitRDSClient(rdc *RDSConfig) (err error)
- type RDSCommon
- func (m *RDSCommon) AddSet(key string, values []string) error
- func (m *RDSCommon) AddZSet(key string, score float64, value []byte) (err error)
- func (m *RDSCommon) DEL(key string) (int64, error)
- func (m *RDSCommon) DelZSetMember(key string, member interface{}) error
- func (m *RDSCommon) Exists(key string) (bool, error)
- func (m *RDSCommon) GetBit(key string, offset int64) (int, error)
- func (m *RDSCommon) GetHashAll(key string, obj interface{}) (err error)
- func (m *RDSCommon) GetHashAll2Map(key string) (map[string]string, error)
- func (m *RDSCommon) GetHashInt(key string, v interface{}) (int64, error)
- func (m *RDSCommon) GetHashString(key string, v interface{}) (string, error)
- func (m *RDSCommon) GetHashValue(key string) (data []string, err error)
- func (m *RDSCommon) GetHashfields(key string, fields []string) ([]string, error)
- func (m *RDSCommon) GetInt64(key string) (v int64, err error)
- func (m *RDSCommon) GetList(key string) (data []string, err error)
- func (m *RDSCommon) GetSet(key string, v interface{}) (interface{}, error)
- func (m *RDSCommon) GetSetData(key string) (data []string, err error)
- func (m *RDSCommon) GetString(key string) (v string, err error)
- func (m *RDSCommon) GetTTL(key string) (ttl int64, err error)
- func (m *RDSCommon) GetZSetCount(key string) (count int64, err error)
- func (m *RDSCommon) GetZSetCountByArea(key string, min, max int64) (count int64, err error)
- func (m *RDSCommon) GetZSetWithScore(key string, offset, limit int) (values []interface{}, err error)
- func (m *RDSCommon) GetZSetWithScoreToInt64s(key string, offset, limit int) (ii []int64, err error)
- func (m *RDSCommon) GetZSetWithScoreToInts(key string, offset, limit int) (ii []int, err error)
- func (m *RDSCommon) GetZSetWithScoreToStrings(key string, offset, limit int) (ss []string, err error)
- func (m *RDSCommon) HashFieldExists(key, field string) (bool, error)
- func (m *RDSCommon) Incr(key string) (num int64, err error)
- func (m *RDSCommon) Limit(key string, seconds, timestamp int64) (num int64, err error)
- func (m *RDSCommon) Pool(p *redis.Pool)
- func (m *RDSCommon) ReName(dist, newKey string) (err error)
- func (m *RDSCommon) SETNX(key string, v interface{}) (bool, error)
- func (m *RDSCommon) SetBit(key string, offset int64, v int) (err error)
- func (m *RDSCommon) SetEX(key string, v interface{}, ex int64) (ok bool, err error)
- func (m *RDSCommon) SetEXPIRE(key string, seconds int64) (bool, error)
- func (m *RDSCommon) SetEXPIREAT(key string, timestamp int64) (bool, error)
- func (m *RDSCommon) SetHash(key string, v interface{}) (err error)
- func (m *RDSCommon) SetHashField(key string, field, v interface{}) (int64, error)
- func (m *RDSCommon) SetList(key string, values []string) error
- func (m *RDSCommon) SetString(key string, v interface{}) (ok bool, err error)
- func (m *RDSCommon) SetZSet(key string, mp map[float64]interface{}) (err error)
- type RDSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RDSCommon ¶
type RDSCommon struct {
// contains filtered or unexported fields
}
func (*RDSCommon) DelZSetMember ¶ added in v0.1.0
DelZSetMember 删除zset成员
func (*RDSCommon) GetHashAll ¶
GetHash get hash all to obj
func (*RDSCommon) GetHashAll2Map ¶ added in v0.5.6
GetHash get hash all to map
func (*RDSCommon) GetHashInt ¶
GetHashInt 获取hash里某个int值
func (*RDSCommon) GetHashString ¶
GetHashString 获取hash里某个int值
func (*RDSCommon) GetHashValue ¶ added in v0.5.7
GetHashValue get hash all
func (*RDSCommon) GetHashfields ¶ added in v0.5.6
HMGET key field [field ...] 返回哈希表 key 中,一个或多个给定域的值。 如果给定的域不存在于哈希表,那么返回一个 nil 值。
func (*RDSCommon) GetSetData ¶ added in v0.1.9
GetSetData
func (*RDSCommon) GetZSetCount ¶ added in v0.1.0
GetZSetCount 获取指定区间min-max之间成员的数量
func (*RDSCommon) GetZSetCountByArea ¶ added in v0.1.0
GetZSetCountByArea 获取指定区间min-max 之间成员的数量
func (*RDSCommon) GetZSetWithScore ¶ added in v0.1.0
func (m *RDSCommon) GetZSetWithScore(key string, offset, limit int) (values []interface{}, err error)
getZSetWithScore
func (*RDSCommon) GetZSetWithScoreToInt64s ¶ added in v0.1.0
GetZSetWithScoreToInt64s ZSET to []int64
func (*RDSCommon) GetZSetWithScoreToInts ¶ added in v0.1.0
GetZSetWithScoreToInts ZSET to []int
func (*RDSCommon) GetZSetWithScoreToStrings ¶ added in v0.1.0
func (m *RDSCommon) GetZSetWithScoreToStrings(key string, offset, limit int) (ss []string, err error)
GetZSetWithScoreToString ZSET to []string
func (*RDSCommon) HashFieldExists ¶
HashFieldExists hash某个field是否存在
func (*RDSCommon) SetEXPIREAT ¶
SetEXPIREAT 设置过期时间(以时间戳的方式)
func (*RDSCommon) SetHashField ¶
SetHashField 设置某个field值
Click to show internal directories.
Click to hide internal directories.