Class RatelimitCache
java.lang.Object
org.easypeelsecurity.springdog.manager.ratelimit.RatelimitCache
Ratelimit cache instance.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidban(String requestHashed, LocalDateTime banUntil) static voidstatic booleanisBannedRequest(String requestHashed, org.easypeelsecurity.springdog.shared.dto.EndpointDto endpoint, LocalDateTime nowTime) When this method called, add access timestamp to the local database. and check if the request is banned or not by the ratelimit rule.
-
Method Details
-
ban
-
clearCaches
public static void clearCaches()
-