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

Notification token caching #431

Open
4 tasks
debkanchan opened this issue Jul 24, 2023 · 0 comments
Open
4 tasks

Notification token caching #431

debkanchan opened this issue Jul 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@debkanchan
Copy link
Member

debkanchan commented Jul 24, 2023

  • When getNotificationToken is called, it should check cache
  • if key exists in cache fetch and return it
  • if key does not exist in cache, query the db
  • when ttl expires cache should delete item

caching lib: https://www.npmjs.com/package/node-cache

@debkanchan debkanchan added the enhancement New feature or request label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant