Documentation ¶
Index ¶
- Variables
- type Key
- type Nodis
- func (n *Nodis) BLPop(key string, timeout time.Duration) []byte
- func (n *Nodis) BRPop(key string, timeout time.Duration) []byte
- func (n *Nodis) Clear(key string)
- func (n *Nodis) Del(key string)
- func (n *Nodis) Exists(key string) bool
- func (n *Nodis) Expire(key string, seconds int64)
- func (n *Nodis) ExpireAt(key string, timestamp time.Time)
- func (n *Nodis) Get(key string) []byte
- func (n *Nodis) HClear(key string)
- func (n *Nodis) HDel(key string, field string)
- func (n *Nodis) HExists(key string, field string) bool
- func (n *Nodis) HGet(key string, field string) []byte
- func (n *Nodis) HGetAll(key string) map[string][]byte
- func (n *Nodis) HIncrBy(key string, field string, value int64) int64
- func (n *Nodis) HIncrByFloat(key string, field string, value float64) float64
- func (n *Nodis) HKeys(key string) []string
- func (n *Nodis) HLen(key string) int
- func (n *Nodis) HMGet(key string, fields ...string) [][]byte
- func (n *Nodis) HMSet(key string, fields map[string][]byte)
- func (n *Nodis) HScan(key string, cursor int, match string, count int) (int, map[string][]byte)
- func (n *Nodis) HSet(key string, field string, value []byte)
- func (n *Nodis) HSetNX(key string, field string, value []byte) bool
- func (n *Nodis) HVals(key string) [][]byte
- func (n *Nodis) Keys(pattern string) []string
- func (n *Nodis) LIndex(key string, index int) ([]byte, bool)
- func (n *Nodis) LInsert(key string, pivot, data []byte, before bool) int
- func (n *Nodis) LLen(key string) int
- func (n *Nodis) LPop(key string) []byte
- func (n *Nodis) LPopRPush(source, destination string) []byte
- func (n *Nodis) LPush(key string, values ...[]byte)
- func (n *Nodis) LPushX(key string, data []byte) int
- func (n *Nodis) LRange(key string, start, stop int) [][]byte
- func (n *Nodis) LRem(key string, count int, data []byte) int
- func (n *Nodis) LSet(key string, index int, data []byte) bool
- func (n *Nodis) LTrim(key string, start, stop int)
- func (n *Nodis) RPop(key string) []byte
- func (n *Nodis) RPopLPush(source, destination string) []byte
- func (n *Nodis) RPush(key string, values ...[]byte)
- func (n *Nodis) RPushX(key string, data []byte) int
- func (n *Nodis) Rename(key, newKey string) error
- func (n *Nodis) SAdd(key string, members ...string) int
- func (n *Nodis) SCard(key string) int
- func (n *Nodis) SDiff(key string, sets ...string) []string
- func (n *Nodis) SInter(key string, sets ...string) []string
- func (n *Nodis) SIsMember(key, member string) bool
- func (n *Nodis) SMembers(key string) []string
- func (n *Nodis) Scan(cursor int, match string, count int) (int, []string)
- func (n *Nodis) Set(key string, value []byte, ttl int64)
- func (n *Nodis) Sync() error
- func (n *Nodis) TTL(key string) time.Duration
- func (n *Nodis) Tidy() (keys map[string]*Key, store map[string]ds.DataStruct)
- func (n *Nodis) Type(key string) string
- func (n *Nodis) ZAdd(key string, member string, score float64)
- func (n *Nodis) ZCard(key string) int64
- func (n *Nodis) ZClear(key string)
- func (n *Nodis) ZExists(key string, member string) bool
- func (n *Nodis) ZIncrBy(key string, score float64, member string) float64
- func (n *Nodis) ZRange(key string, start int64, stop int64) []string
- func (n *Nodis) ZRangeByScore(key string, min float64, max float64) []string
- func (n *Nodis) ZRangeByScoreWithScores(key string, min float64, max float64) []*zset.Element
- func (n *Nodis) ZRangeWithScores(key string, start int64, stop int64) []*zset.Element
- func (n *Nodis) ZRank(key string, member string) int64
- func (n *Nodis) ZRem(key string, members ...string) int64
- func (n *Nodis) ZRemRangeByRank(key string, start int64, stop int64) int64
- func (n *Nodis) ZRemRangeByScore(key string, min float64, max float64) int64
- func (n *Nodis) ZRevRange(key string, start int64, stop int64) []string
- func (n *Nodis) ZRevRangeByScore(key string, min float64, max float64) []string
- func (n *Nodis) ZRevRangeByScoreWithScores(key string, min float64, max float64) []*zset.Element
- func (n *Nodis) ZRevRangeWithScores(key string, start int64, stop int64) []*zset.Element
- func (n *Nodis) ZRevRank(key string, member string) int64
- func (n *Nodis) ZScore(key string, member string) float64
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = &Options{ Path: "data", SyncInterval: 60 * time.Second, }
Functions ¶
This section is empty.
Types ¶
type Nodis ¶
func (*Nodis) HIncrByFloat ¶
func (*Nodis) ZRangeByScore ¶
func (*Nodis) ZRangeByScoreWithScores ¶
func (*Nodis) ZRangeWithScores ¶
func (*Nodis) ZRemRangeByRank ¶
func (*Nodis) ZRemRangeByScore ¶
func (*Nodis) ZRevRangeByScore ¶
func (*Nodis) ZRevRangeByScoreWithScores ¶
func (*Nodis) ZRevRangeWithScores ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.