Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle time period elapses in backend cache #13

Open
philipgough opened this issue Jul 23, 2020 · 0 comments
Open

Handle time period elapses in backend cache #13

philipgough opened this issue Jul 23, 2020 · 0 comments

Comments

@philipgough
Copy link
Contributor

When we detect a time period has elapsed, we might want to push the counters onto the queue so that they can be flushed at a later time.

Only the lowest counter that expires should be pushed to the queue and have the counter reset. We will need to keep the periods that have not yet expired.

This involves watching the clock and being notified of elapsed periods, for example, when we get :59 we elapse a minute, push the minute counters to the queue and reset the counters for the minute period. The same would occur for an hour at :00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant