Documentation ¶
Index ¶
- func DeleteCache(rc *redis.Client, key string, retryTimes int) error
- func GenAutoIncrementalId(rc *redis.Client, key string, retryTimes int) int64
- func GetCacheToModel(rc *redis.Client, key string, model interface{}) (notFound bool)
- func NewClient(c *RedisConfig) *redis.Client
- func SetModelToCache(rc *redis.Client, key string, model interface{}, ttl int) error
- type RedisConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCache ¶
DeleteCache delete cache
func GenAutoIncrementalId ¶
GenAutoIncrementalId gen auto incremental id
func GetCacheToModel ¶
GetCacheToModel get cache to model
func NewClient ¶
func NewClient(c *RedisConfig) *redis.Client
Types ¶
Click to show internal directories.
Click to hide internal directories.