# Functions
No description provided by the author
Force 设置force.
No description provided by the author
RefreshTTL 设置总是刷新.
RefreshTTLAtFirstTime 设置使用MaxTTL在key第一次设置时设置过期.
WithAutoRefreshInterval 设置自动刷新过期时间的设置.
WithKey 中间件通用设置,指定使用的键,注意设置后namespace依然有效.
WithMaxTTL 设置token消减间隔时长,单位s.
WithNamespace 中间件通用设置,指定锁的命名空间.
WithSpecifiedKey 中间件通用设置,指定使用的键,注意设置key后namespace将失效.
WithTaskCron 设置定时器.
WithTTL 设置总是使用指定的ttl刷新key.
WithTTL 设置总是使用指定的ttl刷新key.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
ErrAutoRefreshTaskHasBeenSet 已经启动了自动刷新任务.
ErrAutoRefreshTaskInterval 未设置自动刷新任务的间隔.
ErrAutoRefreshTaskNotSetYet 自动刷新任务未启动.
ErrKeyNotExists key不存在.
ErrKeyNotSetExpire key没有设置过期.
ErrKeyNotSetMaxTLL key没有设置最大tll.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
RefreshOpt 是否刷新ttl的配置项.
# Interfaces
MiddlewareInterface 一个对象满足该接口表示它是一个redis构造的中间件.
# Type aliases
No description provided by the author