-
Notifications
You must be signed in to change notification settings - Fork 47
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 cache invalidation #32
Comments
Yes this is possible, you can achieve this by adding hooks and implement the logic for invalidation there. Example:
|
Thanks man! |
@KieronWiltshire https://github.com/idangozlan/sequelize-redis It's a full solution for caching + invalidating cache easily, and as much as I know it's the only Sequelize 4 caching module (right now). Disclaimer: I'm the author of that module and I'm using that on production for daily traffic of 1m unique users. |
So what I'd like to see implemented, is if the "create" method or similar is executed, then the cache will be invalidated.
For example, if I do a findAll, then a create, and repeat the findAll, I'd like to be able to retrieve the latest included within that find.
Is this possible?
The text was updated successfully, but these errors were encountered: