string_helper

package
v1.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringHelper

type StringHelper struct {
	*base.Base
}

StringHelper Redis String类型助手类

func NewStringHelper

func NewStringHelper(b *base.Base) *StringHelper

NewStringHelper 实例化

func (StringHelper) Decr

func (s StringHelper) Decr(key string, value int64) (v *gvar.Var, err error)

func (StringHelper) Decrby

func (s StringHelper) Decrby(key string, value int64) (v *gvar.Var, err error)

func (StringHelper) Expire

func (s StringHelper) Expire(key string, seconds time.Duration) (v *gvar.Var, err error)

func (StringHelper) Get

func (s StringHelper) Get(key string) (v *gvar.Var, err error)

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) Getrange

func (s StringHelper) Getrange(key string, start int64, end int64) (v *gvar.Var, err error)

func (StringHelper) Getset

func (s StringHelper) Getset(key string, value string) (v *gvar.Var, err error)

func (StringHelper) Incr

func (s StringHelper) Incr(key string) (v *gvar.Var, err error)

func (StringHelper) Incrby

func (s StringHelper) Incrby(key string, value int64) (v *gvar.Var, err error)

func (StringHelper) MGet

func (s StringHelper) MGet(keys []string) (v *gvar.Var, err error)

func (StringHelper) MSet

func (s StringHelper) MSet(kv g.Map) (v *gvar.Var, err error)

func (StringHelper) Set

func (s StringHelper) Set(key string, value string, duration ...time.Duration) (v *gvar.Var, err error)

func (StringHelper) SetNx

func (s StringHelper) SetNx(key string, value string, duration ...time.Duration) (v *gvar.Var, err error)

func (StringHelper) SetOnlyError

func (s StringHelper) SetOnlyError(key string, value string, duration ...time.Duration) (err error)

func (StringHelper) Ttl

func (s StringHelper) Ttl(key string) (v *gvar.Var, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL