Documentation ¶
Index ¶
- func DGet(key, field string, value interface{}, item interface{}, query interface{}, ...) *xvalue.Value
- func DSet(key string, val *xvalue.Value, field string, model interface{}, ...) error
- func DSetAlways(key, pkey string, val *xvalue.Value, field string, item interface{}) error
- func Del(keys ...string)
- func Exists(keys ...string) int64
- func Expire(key string, exp time.Duration)
- func Get(key string) string
- func HDel(key string, field ...string) error
- func HGet(key, field string) string
- func HGetAll(key string) map[string]string
- func HIncr(key, field string, incr int64) error
- func HSet(key string, val interface{}) error
- func Initialize(addr string, pass string)
- func SCard(key string) int64
- func SDel(key string, val ...interface{}) error
- func SIsMember(key string, val interface{}) bool
- func SSet(key string, val ...interface{}) error
- func Set(key string, value string, exp time.Duration) error
- func ZCard(key string) int64
- func ZDel(key string, member ...interface{}) error
- func ZIncrBy(key, member string, increment float64) float64
- func ZRange(key string, start, stop int64) []string
- func ZRangeByScore(key string, min, max string) []string
- func ZRangeByScoreLimit(key string, min, max string, offset, count int64) []string
- func ZRevRangeByScore(key string, min, max string) []string
- func ZRevRangeByScoreLimit(key string, min, max string, offset, count int64) []string
- func ZScore(key, member string) float64
- func ZSet(key string, members ...*Z) error
- type ICache
- type XMemory
- func (s *XMemory) Del(keys ...string)
- func (s *XMemory) Exists(keys ...string) (result int64)
- func (s *XMemory) Expire(key string, exp time.Duration)
- func (s *XMemory) Get(key string) string
- func (s *XMemory) HDel(key string, field ...string) error
- func (s *XMemory) HGet(key, field string) string
- func (s *XMemory) HGetAll(key string) map[string]string
- func (s *XMemory) HIncr(key, field string, incr int64) error
- func (s *XMemory) HSet(key string, val interface{}) error
- func (s *XMemory) IsHash(key string) bool
- func (s *XMemory) SCard(key string) int64
- func (s *XMemory) SDel(key string, val ...interface{}) error
- func (s *XMemory) SIsMember(key string, val interface{}) bool
- func (s *XMemory) SSet(key string, val ...interface{}) error
- func (s *XMemory) Set(key string, value string, exp time.Duration) error
- func (s *XMemory) ZCard(key string) int64
- func (s *XMemory) ZDel(key string, member ...interface{}) error
- func (s *XMemory) ZIncrBy(key, member string, increment float64) float64
- func (s *XMemory) ZRange(key string, start, stop int64) []string
- func (s *XMemory) ZRangeByScore(key string, min, max string) []string
- func (s *XMemory) ZRangeByScoreLimit(key string, min, max string, offset, count int64) []string
- func (s *XMemory) ZRangeByScoreWithScores(key string, min, max string) []Z
- func (s *XMemory) ZRevRangeByScore(key string, min, max string) []string
- func (s *XMemory) ZRevRangeByScoreLimit(key string, min, max string, offset, count int64) []string
- func (s *XMemory) ZRevRangeByScoreLimitWithScores(key string, min, max string, offset, count int64) []Z
- func (s *XMemory) ZRevRangeByScoreWithScores(key string, min, max string) []Z
- func (s *XMemory) ZScore(key, member string) float64
- func (s *XMemory) ZSet(key string, members ...*Z) error
- type XRedis
- func (s *XRedis) Del(keys ...string)
- func (s *XRedis) Exists(keys ...string) int64
- func (s *XRedis) Expire(key string, exp time.Duration)
- func (s *XRedis) Get(key string) string
- func (s *XRedis) HDel(key string, field ...string) error
- func (s *XRedis) HGet(key, field string) string
- func (s *XRedis) HGetAll(key string) map[string]string
- func (s *XRedis) HIncr(key, field string, incr int64) error
- func (s *XRedis) HSet(key string, val interface{}) error
- func (s *XRedis) SCard(key string) int64
- func (s *XRedis) SDel(key string, val ...interface{}) error
- func (s *XRedis) SIsMember(key string, val interface{}) bool
- func (s *XRedis) SSet(key string, val ...interface{}) error
- func (s *XRedis) Set(key string, value string, exp time.Duration) error
- func (s *XRedis) ZCard(key string) int64
- func (s *XRedis) ZDel(key string, member ...interface{}) error
- func (s *XRedis) ZIncrBy(key, member string, increment float64) float64
- func (s *XRedis) ZRange(key string, start, stop int64) []string
- func (s *XRedis) ZRangeByScore(key string, min, max string) []string
- func (s *XRedis) ZRangeByScoreLimit(key string, min, max string, offset, count int64) []string
- func (s *XRedis) ZRangeByScoreWithScores(key string, min, max string) []Z
- func (s *XRedis) ZRevRangeByScore(key string, min, max string) []string
- func (s *XRedis) ZRevRangeByScoreLimit(key string, min, max string, offset, count int64) []string
- func (s *XRedis) ZRevRangeByScoreLimitWithScores(key string, min, max string, offset, count int64) []Z
- func (s *XRedis) ZRevRangeByScoreWithScores(key string, min, max string) []Z
- func (s *XRedis) ZScore(key, member string) float64
- func (s *XRedis) ZSet(key string, members ...*Z) error
- type Z
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DSetAlways ¶
func ZRangeByScore ¶
func ZRangeByScoreLimit ¶
func ZRevRangeByScore ¶
func ZRevRangeByScoreLimit ¶
Types ¶
type ICache ¶
type ICache interface { Expire(key string, exp time.Duration) SSet(key string, val ...interface{}) error SDel(key string, val ...interface{}) error SCard(key string) int64 SIsMember(key string, val interface{}) bool ZSet(key string, members ...*Z) error ZDel(key string, member ...interface{}) error ZCard(key string) int64 ZRange(key string, start, stop int64) []string ZScore(key, member string) float64 ZRangeByScoreLimit(key string, min, max string, offset, count int64) []string ZRangeByScore(key string, min, max string) []string ZRangeByScoreWithScores(key string, min, max string) []Z ZRevRangeByScoreLimitWithScores(key string, min, max string, offset, count int64) []Z ZRevRangeByScoreWithScores(key string, min, max string) []Z ZRevRangeByScoreLimit(key string, min, max string, offset, count int64) []string ZRevRangeByScore(key string, min, max string) []string ZIncrBy(key, member string, increment float64) float64 Del(keys ...string) HGetAll(key string) map[string]string Exists(keys ...string) int64 Get(key string) string Set(key string, value string, exp time.Duration) error HGet(key, field string) string HSet(key string, val interface{}) error HDel(key string, field ...string) error HIncr(key, field string, incr int64) error }
type XMemory ¶
type XMemory struct {
// contains filtered or unexported fields
}
func NewXMemory ¶
func NewXMemory() *XMemory
func (*XMemory) ZRangeByScore ¶
func (*XMemory) ZRangeByScoreLimit ¶
func (*XMemory) ZRangeByScoreWithScores ¶
func (*XMemory) ZRevRangeByScore ¶
func (*XMemory) ZRevRangeByScoreLimit ¶
func (*XMemory) ZRevRangeByScoreLimitWithScores ¶
func (*XMemory) ZRevRangeByScoreWithScores ¶
type XRedis ¶
type XRedis struct {
// contains filtered or unexported fields
}
func (*XRedis) ZRangeByScoreLimit ¶
func (*XRedis) ZRangeByScoreWithScores ¶
func (*XRedis) ZRevRangeByScore ¶
func (*XRedis) ZRevRangeByScoreLimit ¶
func (*XRedis) ZRevRangeByScoreLimitWithScores ¶
func (*XRedis) ZRevRangeByScoreWithScores ¶
type Z ¶
type Z struct { S float64 M interface{} }
func ZRangeByScoreWithScores ¶
Click to show internal directories.
Click to hide internal directories.