Documentation ¶
Index ¶
- type ListHelper
- func (s ListHelper) LIndex(key string, index int64) (v *gvar.Var, err error)
- func (s ListHelper) LLen(key string) (v *gvar.Var, err error)
- func (s ListHelper) LPop(key string) (v *gvar.Var, err error)
- func (s ListHelper) LPush(key string, values []string) (v *gvar.Var, err error)
- func (s ListHelper) LPushX(key string, values []string) (v *gvar.Var, err error)
- func (s ListHelper) LRange(key string, start, end int64) (v *gvar.Var, err error)
- func (s ListHelper) LRem(key string, count int64, value string) (v *gvar.Var, err error)
- func (s ListHelper) LSet(key string, index int64, value string) (v *gvar.Var, err error)
- func (s ListHelper) LTrim(key string, start, stop int64) (v *gvar.Var, err error)
- func (s ListHelper) RPop(key string) (v *gvar.Var, err error)
- func (s ListHelper) RPopLPush(keySource, keyDestination string) (v *gvar.Var, err error)
- func (s ListHelper) RPush(key string, values []string) (v *gvar.Var, err error)
- func (s ListHelper) RPushX(key string, values []string) (v *gvar.Var, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListHelper ¶
ListHelper Redis List类型助手类
func (ListHelper) LPop ¶
func (s ListHelper) LPop(key string) (v *gvar.Var, err error)
LPop 移出并获取列表的第一个元素
func (ListHelper) RPop ¶
func (s ListHelper) RPop(key string) (v *gvar.Var, err error)
RPop 移除列表的最后一个元素,返回值为移除的元素。
func (ListHelper) RPopLPush ¶
func (s ListHelper) RPopLPush(keySource, keyDestination string) (v *gvar.Var, err error)
RPopLPush 移除列表的最后一个元素,并将该元素添加到另一个列表并返回
Click to show internal directories.
Click to hide internal directories.