updateCurrentWindow method
FutureOr<void>
updateCurrentWindow(
- RequestContext req,
- ResponseContext res,
- RateLimitingWindow<
Id> 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<Id> window, DateTime currentTime) async {
await service.update(window.user, window.toJson());
}