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

functionality to invalidate cache on a specific key #9

Open
fredrikj31 opened this issue Nov 10, 2023 · 0 comments
Open

functionality to invalidate cache on a specific key #9

fredrikj31 opened this issue Nov 10, 2023 · 0 comments

Comments

@fredrikj31
Copy link
Member

We need a function to be able to invalidate a cached value.

This can be used, so we can invalidate when we for example updates a new value, then can we invalidate the cache in the database.

We can do one of two things:

  1. Populate the fastify instance to have a .clearCache(key) function, which clears the key in the database
  2. Have an option on POST/PATCH endpoint that when onSend clears the specific key, which is specified on the endpoint.
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