Documentation
¶
Index ¶
- type StringRedisOperator
- func (operator *StringRedisOperator) Delete(redisKey string) error
- func (operator *StringRedisOperator) Get(redisKey string) (string, error)
- func (operator *StringRedisOperator) IsOverLimit(key string, count uint, ttl int64) bool
- func (operator *StringRedisOperator) MustDelete(redisKey string)
- func (operator *StringRedisOperator) MustGet(redisKey string) string
- func (operator *StringRedisOperator) Set(redisKey string, value interface{}, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringRedisOperator ¶
type StringRedisOperator struct {
RedisClient *redis.Client
}
func NewStringRedisOperator ¶
func NewStringRedisOperator(redisClient *redis.Client) *StringRedisOperator
func (*StringRedisOperator) Delete ¶
func (operator *StringRedisOperator) Delete(redisKey string) error
func (*StringRedisOperator) Get ¶
func (operator *StringRedisOperator) Get(redisKey string) (string, error)
func (*StringRedisOperator) IsOverLimit ¶
func (operator *StringRedisOperator) IsOverLimit(key string, count uint, ttl int64) bool
func (*StringRedisOperator) MustDelete ¶
func (operator *StringRedisOperator) MustDelete(redisKey string)
func (*StringRedisOperator) MustGet ¶
func (operator *StringRedisOperator) MustGet(redisKey string) string
Click to show internal directories.
Click to hide internal directories.