updateCurrentWindow method

  1. @override
FutureOr<void> updateCurrentWindow(
  1. RequestContext req,
  2. ResponseContext res,
  3. RateLimitingWindow<Id> window,
  4. 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());
}