pointing towards reactive redis
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
<artifactId>spring-boot-starter-data-redis-reactive</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
||||
@@ -36,6 +36,7 @@ public class RedisRateLimiter implements RateLimiter {
|
||||
*/
|
||||
@Override
|
||||
//TODO: signature? params (tuple?).
|
||||
//TODO: change to Mono<?>
|
||||
public Response isAllowed(String id, int replenishRate, int burstCapacity) {
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user