Documentation ¶
Index ¶
- type MultiCallback
- type RedisHelper
- func (s *RedisHelper) Hash() *hash_helper.HashHelper
- func (s *RedisHelper) HashMapIUD() *hash_helper.HashMapIUDHelper
- func (s *RedisHelper) Key() *key_helper.KeyHelper
- func (s *RedisHelper) List() *list_helper.ListHelper
- func (s *RedisHelper) Multi(callback MultiCallback) (v *gvar.Var, err error)
- func (s *RedisHelper) Script() *script_helper.ScriptHelper
- func (s *RedisHelper) ScriptRunner() *script_helper.ScriptRunner
- func (s *RedisHelper) SetEnabledPrefix(isEnabledPrefix bool) *RedisHelper
- func (s *RedisHelper) SetPrefix(prefix string) *RedisHelper
- func (s *RedisHelper) Sets() *sets_helper.SetsHelper
- func (s *RedisHelper) String() *string_helper.StringHelper
- func (s *RedisHelper) Transaction() *base.TransactionHelper
- func (s *RedisHelper) Watch(key string, callback WatchCallback) (err error)
- type WatchCallback
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, 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
Click to show internal directories.
Click to hide internal directories.