key_helper

package
v1.0.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyHelper

type KeyHelper struct {
	*base.Base
}

KeyHelper Redis String类型助手类

func NewKeyHelper

func NewKeyHelper(b *base.Base) *KeyHelper

NewKeyHelper 实例化

func (KeyHelper) Del

func (s KeyHelper) Del(key string) (v *gvar.Var, err error)

func (KeyHelper) DelM

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

func (KeyHelper) DelOnlyError

func (s KeyHelper) DelOnlyError(key string) (err error)

func (KeyHelper) Exists

func (s KeyHelper) Exists(key string) (v *gvar.Var, err error)

func (KeyHelper) ExistsNoError

func (s KeyHelper) ExistsNoError(key string) (v *gvar.Var)

func (KeyHelper) Scan

func (s KeyHelper) Scan(key string, callback func(keys []string) error, count ...int) (err error)

Scan 批量获取key 【注意】key里需要有通配符 比如:a:*

Jump to

Keyboard shortcuts

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