Documentation ¶
Index ¶
- Constants
- type RedisEngine
- func (helper *RedisEngine) GetKey(key string) any
- func (helper *RedisEngine) GetKeyInt32(key int32) any
- func (helper *RedisEngine) GetKeyInt64(key int64) any
- func (helper *RedisEngine) Open() *redis.Client
- func (helper *RedisEngine) SetKey(key string, value any) *redis.Client
- func (helper *RedisEngine) SetKeyInt32(key int32, value any) *redis.Client
- func (helper *RedisEngine) SetKeyInt64(key int64, value any) *redis.Client
Constants ¶
View Source
const ExpireTime = 1000000 * 10
View Source
const PREKEY_USER = "user::"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisEngine ¶
var RedisHelperInst *RedisEngine
func (*RedisEngine) GetKey ¶
func (helper *RedisEngine) GetKey(key string) any
func (*RedisEngine) GetKeyInt32 ¶
func (helper *RedisEngine) GetKeyInt32(key int32) any
func (*RedisEngine) GetKeyInt64 ¶
func (helper *RedisEngine) GetKeyInt64(key int64) any
func (*RedisEngine) Open ¶
func (helper *RedisEngine) Open() *redis.Client
func (*RedisEngine) SetKeyInt32 ¶
func (helper *RedisEngine) SetKeyInt32(key int32, value any) *redis.Client
func (*RedisEngine) SetKeyInt64 ¶
func (helper *RedisEngine) SetKeyInt64(key int64, value any) *redis.Client
Click to show internal directories.
Click to hide internal directories.