Documentation ¶
Index ¶
- type InternalRedis
- func (r *InternalRedis) Connect() error
- func (r *InternalRedis) DeleteRedisValue(redisKey string)
- func (r *InternalRedis) GetRedisValue(redisKey string) (string, error)
- func (r *InternalRedis) GetTTLValue(redisKey string) int64
- func (r *InternalRedis) SetRedisValue(redisKey string, redisValue interface{}, timeOutPeriod time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalRedis ¶
type InternalRedis struct {
Client *redis.Client
}
func NewInternalRedis ¶
func NewInternalRedis() *InternalRedis
func (*InternalRedis) Connect ¶
func (r *InternalRedis) Connect() error
func (*InternalRedis) DeleteRedisValue ¶
func (r *InternalRedis) DeleteRedisValue(redisKey string)
func (*InternalRedis) GetRedisValue ¶
func (r *InternalRedis) GetRedisValue(redisKey string) (string, error)
func (*InternalRedis) GetTTLValue ¶
func (r *InternalRedis) GetTTLValue(redisKey string) int64
func (*InternalRedis) SetRedisValue ¶
func (r *InternalRedis) SetRedisValue(redisKey string, redisValue interface{}, timeOutPeriod time.Duration)
Click to show internal directories.
Click to hide internal directories.