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

implement caching #1

Open
jaeh opened this issue Apr 21, 2020 · 0 comments
Open

implement caching #1

jaeh opened this issue Apr 21, 2020 · 0 comments

Comments

@jaeh
Copy link
Member

jaeh commented Apr 21, 2020

cache results from the proxied services using @grundstein/mem-store.

refresh that cache on requests if last request was > config.cacheRefreshDelay minute ago.

always answer from cache, then ask the proxied services for update and write it to the store.

make sure to only run the update if there is no update running already.

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

No branches or pull requests

1 participant