Use Guava Cache to save data to hard drive.

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

  • Store data in memory as usual.
  • When the cache size exceeds the specified number, it will save the data in the cache in a custom file on the hard disk.
+4
source share
2 answers

This is likely to be useful: Extending Guava caches to disk overflow

+5
source

The API (and feature set) is a bit heavy, but I used Ehcache in the past and it worked well. Similar technologies include Infinispan and Hazelcast.

, Chris , , ( ), .. , .

+2

All Articles