| 程序包 | 说明 |
|---|---|
| org.dromara.soul.web.plugin.ratelimter |
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<RateLimiterResponse> |
RedisRateLimiter.isAllowed(String id,
double replenishRate,
double burstCapacity)
This uses a basic token bucket algorithm and relies on the fact that Redis scripts
execute atomically.
|
Copyright © 2019 dromara. All rights reserved.