Restore TokenBucket/RateLimiter state from localStorage
Opened this issue · 0 comments
wzijden commented
When using this on a client site web page, you will also want to rate limit customers that continously refresh your web page.
But in this case, the rate limiter will be reinitialized on each page load, and its previous state thrown away.
Can we someone serialize the current state of the Rate Limit to local storage, so that we can recover it on page load?