Documentation
¶
Index ¶
- type StringHelper
- func (s StringHelper) Decr(key string, value int64) (v *gvar.Var, err error)
- func (s StringHelper) Decrby(key string, value int64) (v *gvar.Var, err error)
- func (s StringHelper) Get(key string) (v *gvar.Var, err error)
- func (s StringHelper) GetNoError(key string) (v *gvar.Var)
- func (s StringHelper) Getbit(key string, offset interface{}) (v *gvar.Var, err error)
- func (s StringHelper) Getrange(key string, start int64, end int64) (v *gvar.Var, err error)
- func (s StringHelper) Getset(key string, value string) (v *gvar.Var, err error)
- func (s StringHelper) Incr(key string) (v *gvar.Var, err error)
- func (s StringHelper) Incrby(key string, value int64) (v *gvar.Var, err error)
- func (s StringHelper) MGet(keys []string) (v *gvar.Var, err error)
- func (s StringHelper) MSet(kv g.Map) (v *gvar.Var, err error)
- func (s StringHelper) Set(key string, value string, duration ...time.Duration) (v *gvar.Var, err error)
- func (s StringHelper) SetNx(key string, value string, duration ...time.Duration) (v *gvar.Var, err error)
- func (s StringHelper) SetOnlyError(key string, value string, duration ...time.Duration) (err error)
- type StringScriptHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringHelper ¶
StringHelper Redis String类型助手类
func (StringHelper) GetNoError ¶
func (s StringHelper) GetNoError(key string) (v *gvar.Var)
func (StringHelper) Getbit ¶
func (s StringHelper) Getbit(key string, offset interface{}) (v *gvar.Var, err error)
func (StringHelper) SetOnlyError ¶
type StringScriptHelper ¶ added in v1.0.20
func NewStringScriptHelper ¶ added in v1.0.20
func NewStringScriptHelper(b *base.Base) *StringScriptHelper
func (StringScriptHelper) MGetWithPrefixScript ¶ added in v1.0.20
func (s StringScriptHelper) MGetWithPrefixScript(prefixKey string, keys []string) (v *gvar.Var, err error)
MGetWithPrefixScript 批量获取keys
Click to show internal directories.
Click to hide internal directories.