Documentation
¶
Index ¶
- type BasicOps
- func (b *BasicOps) ZAdd(key string, score float64, member string) error
- func (b *BasicOps) ZCard(key string) int
- func (b *BasicOps) ZRandMember(key string, count int, withScores bool) []models.ZSetMember
- func (b *BasicOps) ZRandMemberWithoutScores(key string, count int) []string
- func (b *BasicOps) ZRem(key string, member string) error
- func (b *BasicOps) ZScore(key string, member string) (float64, bool)
- type LexOps
- type Manager
- func (m *Manager) ZAdd(key string, score float64, member string) error
- func (m *Manager) ZCard(key string) int
- func (m *Manager) ZCount(key string, min, max float64) int
- func (m *Manager) ZDiff(keys ...string) []string
- func (m *Manager) ZDiffStore(destination string, keys ...string) (int, error)
- func (m *Manager) ZIncrBy(key string, increment float64, member string) (float64, error)
- func (m *Manager) ZInter(keys ...string) []string
- func (m *Manager) ZInterCard(keys ...string) (int, error)
- func (m *Manager) ZInterStore(destination string, keys []string, weights []float64) (int, error)
- func (m *Manager) ZLexCount(key string, min, max string) (int, error)
- func (m *Manager) ZMScore(key string, members ...string) []float64
- func (m *Manager) ZPopMax(key string) (models.ZSetMember, bool)
- func (m *Manager) ZPopMaxN(key string, count int) []models.ZSetMember
- func (m *Manager) ZPopMin(key string) (models.ZSetMember, bool)
- func (m *Manager) ZPopMinN(key string, count int) []models.ZSetMember
- func (m *Manager) ZRandMember(key string, count int, withScores bool) []models.ZSetMember
- func (m *Manager) ZRandMemberWithoutScores(key string, count int) []string
- func (m *Manager) ZRange(key string, start, stop int) []string
- func (m *Manager) ZRangeByLex(key string, min, max string) []string
- func (m *Manager) ZRangeByScore(key string, min, max float64) []string
- func (m *Manager) ZRangeByScoreWithScores(key string, min, max float64) []models.ZSetMember
- func (m *Manager) ZRangeStore(destination string, source string, start, stop int, withScores bool) (int, error)
- func (m *Manager) ZRangeWithScores(key string, start, stop int) []models.ZSetMember
- func (m *Manager) ZRank(key string, member string) (int, bool)
- func (m *Manager) ZRem(key string, member string) error
- func (m *Manager) ZRemRangeByLex(key string, min, max string) (int, error)
- func (m *Manager) ZRemRangeByRank(key string, start, stop int) (int, error)
- func (m *Manager) ZRemRangeByScore(key string, min, max float64) (int, error)
- func (m *Manager) ZRevRange(key string, start, stop int) []string
- func (m *Manager) ZRevRangeByLex(key string, max, min string) []string
- func (m *Manager) ZRevRangeByScore(key string, max, min float64) []string
- func (m *Manager) ZRevRangeWithScores(key string, start, stop int) []models.ZSetMember
- func (m *Manager) ZRevRank(key string, member string) (int, bool)
- func (m *Manager) ZScan(key string, cursor int, match string, count int) ([]models.ZSetMember, int)
- func (m *Manager) ZScore(key string, member string) (float64, bool)
- func (m *Manager) ZUnion(keys ...string) []models.ZSetMember
- func (m *Manager) ZUnionStore(destination string, keys []string, weights []float64) (int, error)
- type ModifyOps
- type RangeOps
- func (r *RangeOps) ZPopMax(key string, count int) []models.ZSetMember
- func (r *RangeOps) ZPopMaxOne(key string) (models.ZSetMember, bool)
- func (r *RangeOps) ZPopMin(key string, count int) []models.ZSetMember
- func (r *RangeOps) ZPopMinOne(key string) (models.ZSetMember, bool)
- func (r *RangeOps) ZRange(key string, start, stop int) []string
- func (r *RangeOps) ZRangeByScore(key string, min, max float64) []string
- func (r *RangeOps) ZRangeByScoreWithScores(key string, min, max float64) []models.ZSetMember
- func (r *RangeOps) ZRangeStore(destination string, source string, start, stop int, withScores bool) (int, error)
- func (r *RangeOps) ZRangeWithScores(key string, start, stop int) []models.ZSetMember
- func (r *RangeOps) ZRevRange(key string, start, stop int) []string
- func (r *RangeOps) ZRevRangeByScore(key string, max, min float64) []string
- func (r *RangeOps) ZRevRangeWithScores(key string, start, stop int) []models.ZSetMember
- type RankOps
- type ScanOps
- type ScoreOps
- type SetOps
- func (s *SetOps) ZDiff(keys ...string) []string
- func (s *SetOps) ZDiffStore(destination string, keys ...string) (int, error)
- func (s *SetOps) ZInter(keys ...string) []string
- func (s *SetOps) ZInterCard(keys ...string) (int, error)
- func (s *SetOps) ZInterStore(destination string, keys []string, weights []float64) (int, error)
- func (s *SetOps) ZUnion(keys ...string) []models.ZSetMember
- func (s *SetOps) ZUnionStore(destination string, keys []string, weights []float64) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicOps ¶
type BasicOps struct {
// contains filtered or unexported fields
}
BasicOps handles basic operations for sorted sets
func NewBasicOps ¶
NewBasicOps creates a new BasicOps instance
func (*BasicOps) ZRandMember ¶
ZRandMember returns random members from a sorted set
func (*BasicOps) ZRandMemberWithoutScores ¶
ZRandMemberWithoutScores returns random members without their scores
type LexOps ¶
type LexOps struct {
// contains filtered or unexported fields
}
func (*LexOps) ZLexCount ¶
ZLexCount returns the number of elements in sorted set between min and max
func (*LexOps) ZRangeByLex ¶
ZRangeByLex returns elements in sorted set between min and max lexicographically
func (*LexOps) ZRemRangeByLex ¶
ZRemRangeByLex removes elements in sorted set between min and max lexicographically
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager coordinates all ZSet operations
func NewManager ¶
NewManager creates a new ZSet manager with all operations
func (*Manager) ZDiffStore ¶
func (*Manager) ZInterStore ¶
func (*Manager) ZRandMember ¶
func (*Manager) ZRandMemberWithoutScores ¶
func (*Manager) ZRangeByLex ¶
Lexicographical Operations
func (*Manager) ZRangeByScore ¶
func (*Manager) ZRangeByScoreWithScores ¶
func (m *Manager) ZRangeByScoreWithScores(key string, min, max float64) []models.ZSetMember
func (*Manager) ZRangeStore ¶
func (*Manager) ZRangeWithScores ¶
func (m *Manager) ZRangeWithScores(key string, start, stop int) []models.ZSetMember
func (*Manager) ZRemRangeByLex ¶
func (*Manager) ZRemRangeByRank ¶
Modify Operations
func (*Manager) ZRemRangeByScore ¶
func (*Manager) ZRevRangeByLex ¶
Lex operasyonlarının tamamlanması
func (*Manager) ZRevRangeByScore ¶
func (*Manager) ZRevRangeWithScores ¶
func (m *Manager) ZRevRangeWithScores(key string, start, stop int) []models.ZSetMember
type ModifyOps ¶
type ModifyOps struct {
// contains filtered or unexported fields
}
func NewModifyOps ¶
func (*ModifyOps) ZRemRangeByRank ¶
ZRemRangeByRank removes all elements in the sorted set with rank between start and stop
type RangeOps ¶
type RangeOps struct {
// contains filtered or unexported fields
}
func NewRangeOps ¶
func (*RangeOps) ZPopMax ¶
func (r *RangeOps) ZPopMax(key string, count int) []models.ZSetMember
ZPopMax removes and returns members with the highest score
func (*RangeOps) ZPopMaxOne ¶
func (r *RangeOps) ZPopMaxOne(key string) (models.ZSetMember, bool)
Convenience methods for single element operations
func (*RangeOps) ZPopMin ¶
func (r *RangeOps) ZPopMin(key string, count int) []models.ZSetMember
ZPopMin removes and returns members with the lowest score
func (*RangeOps) ZPopMinOne ¶
func (r *RangeOps) ZPopMinOne(key string) (models.ZSetMember, bool)
func (*RangeOps) ZRangeByScore ¶
func (*RangeOps) ZRangeByScoreWithScores ¶
func (r *RangeOps) ZRangeByScoreWithScores(key string, min, max float64) []models.ZSetMember
func (*RangeOps) ZRangeStore ¶
func (*RangeOps) ZRangeWithScores ¶
func (r *RangeOps) ZRangeWithScores(key string, start, stop int) []models.ZSetMember
func (*RangeOps) ZRevRangeByScore ¶
func (*RangeOps) ZRevRangeWithScores ¶
func (r *RangeOps) ZRevRangeWithScores(key string, start, stop int) []models.ZSetMember
type RankOps ¶
type RankOps struct {
// contains filtered or unexported fields
}
func NewRankOps ¶
type ScoreOps ¶
type ScoreOps struct {
// contains filtered or unexported fields
}
func NewScoreOps ¶
type SetOps ¶
type SetOps struct {
// contains filtered or unexported fields
}
func (*SetOps) ZDiffStore ¶
ZDiffStore stores the difference from first set to others in destination
func (*SetOps) ZInterCard ¶
ZInterCard returns the number of members in the intersection of multiple sets
func (*SetOps) ZInterStore ¶
ZInterStore stores intersection of sets in destination