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 { Ctx context.Context Key *key_helper.KeyHelper String *string_helper.StringHelper Sets *sets_helper.SetsHelper List *list_helper.ListHelper Hash *hash_helper.HashHelper Transaction *base.TransactionHelper }
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
Click to show internal directories.
Click to hide internal directories.