updateCurrentWindow method
FutureOr<void>
updateCurrentWindow(
- RequestContext req,
- ResponseContext res,
- RateLimitingWindow<
User> window, - DateTime currentTime,
override
Updates the underlying store with information about the new
window
that the user is operating in.
Implementation
@override
FutureOr<void> updateCurrentWindow(RequestContext req, ResponseContext res,
RateLimitingWindow<User> window, DateTime currentTime) {
_cache[window.user] = window;
}