v1

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 9 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

RedisHelper 助手类

func NewRedisHelper

func NewRedisHelper(ctx context.Context) *RedisHelper

func (*RedisHelper) Multi

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

Multi 开启事务

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