Documentation ¶
Index ¶
- Constants
- func Del(red *redis.Client, keyPrefix string, id uint64) error
- func Get(red *redis.Client, keyPrefix string, id uint64, ...) (int32, error)
- func GetMap(red *redis.Client, keyPrefix string, ids []uint64, ...) (map[uint64]int32, error)
- func Increase(red *redis.Client, keyPrefix string, id uint64, delta int32) error
- func Set(red *redis.Client, keyPrefix string, id uint64, count int32) error
- func SetMap(red *redis.Client, keyPrefix string, countMap map[uint64]int32) error
Constants ¶
View Source
const TTL = 1 * time.Hour
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.