-
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
How to clear cache? #37
Comments
Hey thanks for pointing this out! Is there any chance you can give me a reproducible test case? Maybe an example with models, an instance, etc? That would help me chase this down. |
I am about to just write a custom solution for my platform. It seems like every one will have special cases. If I come up with general use code, I'll share and do a pull request. I am going to hook onto the Sequelize hooks beforeUpdate, afterUpdate, etc. and just read from the cache! Always store the update to the database as well for persistent storage. Now, when the app restarts, I want to go a step further and load items into Redis cache RAM for fast data access. |
@knoxcard 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. |
You can connect your connection and remove it wit this await rc.flushdb() |
I have a problem that when I update a model the cache does not update, the same information remains, I tried to hook them in sequelize, but it did not work.
The text was updated successfully, but these errors were encountered: