v1

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiCallback

type MultiCallback func(helper *RedisHelper) error

type RedisHelper

type RedisHelper struct {
	*base.Base
	// contains filtered or unexported fields
}

RedisHelper 助手类

func NewRedisHelper

func NewRedisHelper(ctx context.Context, prefix string, isEnabledPrefix bool) *RedisHelper

func (*RedisHelper) Hash

func (s *RedisHelper) Hash() *hash_helper.HashHelper

func (*RedisHelper) HashMapIUD added in v1.0.11

func (s *RedisHelper) HashMapIUD() *hash_helper.HashMapIUDHelper

func (*RedisHelper) Key

func (s *RedisHelper) Key() *key_helper.KeyHelper

func (*RedisHelper) List

func (s *RedisHelper) List() *list_helper.ListHelper

func (*RedisHelper) Multi

func (s *RedisHelper) Multi(callback MultiCallback) (v *gvar.Var, err error)

Multi 开启事务

func (*RedisHelper) Script added in v1.0.5

func (s *RedisHelper) Script() *script_helper.ScriptHelper

func (*RedisHelper) ScriptRunner added in v1.0.6

func (s *RedisHelper) ScriptRunner() *script_helper.ScriptRunner

func (*RedisHelper) SetEnabledPrefix added in v1.0.12

func (s *RedisHelper) SetEnabledPrefix(isEnabledPrefix bool) *RedisHelper

SetEnabledPrefix 设置是否启用前缀

func (*RedisHelper) SetPrefix added in v1.0.14

func (s *RedisHelper) SetPrefix(prefix string) *RedisHelper

SetPrefix 设置前缀

func (*RedisHelper) Sets

func (s *RedisHelper) Sets() *sets_helper.SetsHelper

func (*RedisHelper) String

func (s *RedisHelper) String() *string_helper.StringHelper

func (*RedisHelper) Transaction

func (s *RedisHelper) Transaction() *base.TransactionHelper

func (*RedisHelper) Watch

func (s *RedisHelper) Watch(key string, callback WatchCallback) (err error)

Watch 监听闭包

type WatchCallback

type WatchCallback func(key string, helper *RedisHelper) error

Directories

Path Synopsis
helper

Jump to

Keyboard shortcuts

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