Documentation ¶
Index ¶
- Variables
- func Do(cmd string, args ...interface{}) (reply interface{}, err error)
- type DataStore
- type Objects
- type Serializer
- type Strings
- type Trans
- type ZsetIncrbyParams
- type Zsets
- func (z *Zsets) Add(key interface{}, score float64, item interface{}) error
- func (z *Zsets) BatchIncrby(params []ZsetIncrbyParams) error
- func (z *Zsets) Card(key interface{}) (int, error)
- func (z *Zsets) Clear(key interface{}) error
- func (z *Zsets) Count(key, min, max interface{}) (int, error)
- func (z *Zsets) Incrby(key interface{}, score float64, item interface{}) error
- func (z *Zsets) Max(key interface{}) (interface{}, error)
- func (z *Zsets) MaxStr(key interface{}) (string, error)
- func (z *Zsets) Min(key interface{}) (interface{}, error)
- func (z *Zsets) MinStr(key interface{}) (string, error)
- func (z *Zsets) Range(key interface{}, b, e int, rev, withscores bool) ([]interface{}, error)
- func (z *Zsets) RangeByScore(key interface{}, max float64, maxInclusive bool, min float64, ...) ([]interface{}, error)
- func (z *Zsets) RangeByScoreStr(key interface{}, max float64, maxInclusive bool, min float64, ...) ([]string, error)
- func (z *Zsets) RangeStr(key interface{}, b, e int, rev, withscores bool) ([]string, error)
- func (z *Zsets) Rem(key, item interface{}) error
- func (z *Zsets) RemByScore(key interface{}, min, max float64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = appgo.NewApiErr(appgo.ECodeNotFound, "redis: value not found")
)
Functions ¶
Types ¶
type Objects ¶
type Objects struct {
// contains filtered or unexported fields
}
func NewObjects ¶
func NewObjects(namespace string, expire int, ds DataStore, sl Serializer) *Objects
func (*Objects) GetWithStore ¶
func (*Objects) SetWithStore ¶
type Serializer ¶
type Trans ¶
type Trans struct {
// contains filtered or unexported fields
}
func BeginTrans ¶
func BeginTrans() *Trans
type ZsetIncrbyParams ¶
type ZsetIncrbyParams struct { Key interface{} Item interface{} Score float64 }
type Zsets ¶
type Zsets struct {
// contains filtered or unexported fields
}
func (*Zsets) BatchIncrby ¶
func (z *Zsets) BatchIncrby(params []ZsetIncrbyParams) error
func (*Zsets) RangeByScore ¶
func (*Zsets) RangeByScoreStr ¶
func (*Zsets) RemByScore ¶
Click to show internal directories.
Click to hide internal directories.