Iceglaze Iceglaze - 1 year ago 274
Java Question

Use Guava Cache to persist data to a hard disk

I am new to Guava Cache. How do I create the following in the cache?

  1. Save the data in memory as normal.

  2. When the size of the cache is over the given number, it will persist the data in cache in a configurable file on the hard disk.

Answer Source

This will probably be helpful: Extending Guava caches to overflow to disk

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download