-
Notifications
You must be signed in to change notification settings - Fork 74
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
Where to use load/2, dump/2 #201
Comments
This is a good/interesting question. The dump/load commands are mainly meant for running on-demand and be invoked from your application. For example, you may have a job/process/gen_server in your app that runs from time to time (or when there is a graceful shutdown you could dump the data before stopping the app) and calls the |
Hey, Thanks for the response. Thanks! |
How would I achieve data persistence? Which adapter offers that? Or you meant that for Redis only? |
Right, currently the only adapter that offers data persistence is the Redis adapter, because of Redis itself, you know Redis provides support for persistence already, so I'd say more than the adapter is Redis, you can configure it for data persistence. |
Hey,
I am wondering about where to use load and dump from.
https://hexdocs.pm/nebulex/Nebulex.Cache.html#c:load/2
https://hexdocs.pm/nebulex/Nebulex.Cache.html#c:dump/2
Would I add init (load) and stop (dump) (in a genserver terminate analogous way) in the Cache module? - this did not seem to work for stop
What is the recommended way?
Thanks
The text was updated successfully, but these errors were encountered: