I am new to Guava Cache. How do I create the following in the cache?
This will probably be helpful: Extending Guava caches to overflow to disk
The API (and the feature set) is a bit heavy weight but I've used Ehcache in the past and it worked well. Similar technologies include Infinispan and Hazelcast.
I don't like the solution in the article Chris shared as performance and the storage limit will depend on the file system you run on (and won't be particularly good), and it also lacks protection against corruption etc. If you plan to use it in production, I'd use one of these libraries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With