| 程序包 | 说明 |
|---|---|
| io.github.spring.tools.redis.concurrent |
| 限定符和类型 | 方法和说明 |
|---|---|
static RedisRateLimiter |
RedisRateLimiter.create(String key,
double permitsPerSecond)
创建一个实例,默认最大存储1秒的数量,存储1秒的令牌
|
static RedisRateLimiter |
RedisRateLimiter.create(String key,
double permitsPerSecond,
double maxBurstSeconds)
设置一个 maxBurstSeconds 的限流器,initBurstSeconds = maxBurstSeconds
|
static RedisRateLimiter |
RedisRateLimiter.create(String key,
double permitsPerSecond,
double maxBurstSeconds,
double initBurstSeconds)
创建一个实例
|
Copyright © 2020. All rights reserved.