Documentation
¶
Overview ¶
@Title @Description @Author Wangwengang 2021/8/24 下午8:21 @Update Wangwengang 2021/8/24 下午8:21
Index ¶
- func Setup()
- type RedisV8
- func (r *RedisV8) Decrease(key string) error
- func (r *RedisV8) Del(key string) error
- func (r *RedisV8) Expire(key string, dur time.Duration) error
- func (r *RedisV8) Get(key string) (string, error)
- func (r *RedisV8) GetClient() redis.UniversalClient
- func (r *RedisV8) HashDel(hk, key string) error
- func (r *RedisV8) HashGet(hk, key string) (string, error)
- func (r *RedisV8) HashSet(hk, key string, val interface{}) error
- func (r *RedisV8) Increase(key string) error
- func (r *RedisV8) Set(key string, val interface{}, expire int) error
- func (r *RedisV8) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisV8 ¶
type RedisV8 struct {
// contains filtered or unexported fields
}
var (
Redis *RedisV8
)
func (*RedisV8) GetClient ¶
func (r *RedisV8) GetClient() redis.UniversalClient
GetClient 暴露原生client
Click to show internal directories.
Click to hide internal directories.