Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMemcacheCache ¶ added in v1.0.3
NewMemcacheCache 创建一个基于Memcache存储的分布式缓存
func NewRedisCache ¶
func NewRedisCache(client *redis.Client, options ...option) *redisCache
NewRedisCache 创建一个基于Redis存储的分布式缓存
func WithExpiration ¶
WithExpiration 配置过期时间
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.