# Functions
New 构造令牌桶限流器.
WithAutoRefreshInterval 设置自动刷新过期时间的设置.
WithDefaultCountPerPeriod 设置时间间隔内的token消减数.
WithDefaultPeriod 设置token消减间隔时长,单位s.
WithKey 中间件通用设置,指定使用的键,注意设置后namespace依然有效.
WithMaxSize 设置最大水位,必须大于0.
WithMaxTTL 设置token消减间隔时长,单位s.
WithNamespace 中间件通用设置,指定锁的命名空间.
WithSpecifiedKey 中间件通用设置,指定使用的键,注意设置key后namespace将失效.
WithTaskCron 设置定时器.
WithWarningSize 设置警戒水位,必须大于0.