Documentation ¶
Index ¶
- Constants
- type IchubRedisClient
- func (this *IchubRedisClient) GetKey(key string) any
- func (this *IchubRedisClient) GetKeyInt32(key string) int32
- func (this *IchubRedisClient) GetKeyInt64(key string) int64
- func (this *IchubRedisClient) GetKeyString(key string) string
- func (this *IchubRedisClient) Open() *redis.Client
- func (this *IchubRedisClient) RedisClientDto() *baseconfig.RedisClientDto
- func (this *IchubRedisClient) SetKey(key string, value any) *redis.Client
- func (this *IchubRedisClient) SetKeyInt32(key string, value int32) *redis.Client
- func (this *IchubRedisClient) SetKeyInt64(key string, value int64) *redis.Client
- func (this *IchubRedisClient) SetKeyTimeout(key string, value any, timeout time.Duration) *redis.Client
- func (this *IchubRedisClient) SetRedisClientDto(redisClientDto *baseconfig.RedisClientDto)
Constants ¶
View Source
const DEFAULT_ExpireTime = time.Second * 60 * 10
View Source
const PREKEY_USER = "user::"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IchubRedisClient ¶
type IchubRedisClient struct { Client *redis.Client `json:"-"` // contains filtered or unexported fields }
var RedisInst *IchubRedisClient
func NewIchubRedis ¶
func NewIchubRedis() *IchubRedisClient
func (*IchubRedisClient) GetKey ¶
func (this *IchubRedisClient) GetKey(key string) any
func (*IchubRedisClient) GetKeyInt32 ¶
func (this *IchubRedisClient) GetKeyInt32(key string) int32
func (*IchubRedisClient) GetKeyInt64 ¶
func (this *IchubRedisClient) GetKeyInt64(key string) int64
func (*IchubRedisClient) GetKeyString ¶ added in v1.0.41
func (this *IchubRedisClient) GetKeyString(key string) string
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 any) *redis.Client
func (*IchubRedisClient) SetKeyInt32 ¶
func (this *IchubRedisClient) SetKeyInt32(key string, value int32) *redis.Client
func (*IchubRedisClient) SetKeyInt64 ¶
func (this *IchubRedisClient) SetKeyInt64(key string, value int64) *redis.Client
func (*IchubRedisClient) SetKeyTimeout ¶ added in v1.0.27
func (*IchubRedisClient) SetRedisClientDto ¶
func (this *IchubRedisClient) SetRedisClientDto(redisClientDto *baseconfig.RedisClientDto)
Click to show internal directories.
Click to hide internal directories.