-
Notifications
You must be signed in to change notification settings - Fork 1.6k
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Taking Snapshots of the Cache to Disk #123
Comments
Take a look at the Policy api. It provides snapshot iteration order and the ability to query the internal metadata. |
I'm assuming you're referring to the following, right? Policy.Expiration.oldest So considering the Also, I'm assuming in either case I have to iterate through the iterator and call |
If you don't care about order then, as you said, using |
Thanks :) |
If you run into any snags be sure to let me know. |
What would be the best way to snapshot the cache state to disk (all the elements and their expirations) on some interval to be able to recover the cache when the process restarts?
The text was updated successfully, but these errors were encountered: