Documentation ¶
Index ¶
- Constants
- func InjectIchubRedisClient(s *IchubRedisClient)
- func LoadIchubRedisClient() baseiface.ISingleton
- type IchubRedisClient
- func (this *IchubRedisClient) GetKey(key string) any
- func (this *IchubRedisClient) GetKeyInt32(key int32) any
- func (this *IchubRedisClient) GetKeyInt64(key int64) any
- func (this *IchubRedisClient) Open() *redis.Client
- func (this *IchubRedisClient) RedisClientDto() *baseconfig.RedisClientDto
- func (this *IchubRedisClient) SetKey(key string, value interface{}) *redis.Client
- func (this *IchubRedisClient) SetKeyInt32(key int32, value interface{}) *redis.Client
- func (this *IchubRedisClient) SetKeyInt64(key int64, value interface{}) *redis.Client
- func (this *IchubRedisClient) SetRedisClientDto(redisClientDto *baseconfig.RedisClientDto)
Constants ¶
View Source
const ExpireTime = 1000000 * 10
View Source
const PREKEY_USER = "user::"
Variables ¶
This section is empty.
Functions ¶
func InjectIchubRedisClient ¶
func InjectIchubRedisClient(s *IchubRedisClient)
func LoadIchubRedisClient ¶
func LoadIchubRedisClient() baseiface.ISingleton
Types ¶
type IchubRedisClient ¶
type IchubRedisClient struct { basedto.BaseEntity Client *redis.Client `json:"-"` // contains filtered or unexported fields }
var RedisInst *IchubRedisClient
func FindBeanIchubRedisClient ¶
func FindBeanIchubRedisClient() *IchubRedisClient
FindBeanIchubRedisClient
func NewIchubRedis ¶
func NewIchubRedis() *IchubRedisClient
func (*IchubRedisClient) GetKey ¶
func (this *IchubRedisClient) GetKey(key string) any
func (*IchubRedisClient) GetKeyInt32 ¶
func (this *IchubRedisClient) GetKeyInt32(key int32) any
func (*IchubRedisClient) GetKeyInt64 ¶
func (this *IchubRedisClient) GetKeyInt64(key int64) any
func (*IchubRedisClient) Open ¶
func (this *IchubRedisClient) Open() *redis.Client
func (*IchubRedisClient) RedisClientDto ¶
func (this *IchubRedisClient) RedisClientDto() *baseconfig.RedisClientDto
func (*IchubRedisClient) SetKey ¶
func (this *IchubRedisClient) SetKey(key string, value interface{}) *redis.Client
func (*IchubRedisClient) SetKeyInt32 ¶
func (this *IchubRedisClient) SetKeyInt32(key int32, value interface{}) *redis.Client
func (*IchubRedisClient) SetKeyInt64 ¶
func (this *IchubRedisClient) SetKeyInt64(key int64, value interface{}) *redis.Client
func (*IchubRedisClient) SetRedisClientDto ¶
func (this *IchubRedisClient) SetRedisClientDto(redisClientDto *baseconfig.RedisClientDto)
Click to show internal directories.
Click to hide internal directories.