I would like to ask if anyone knows a JAVA Caching Framework with the following properties:
I have big data files (2mb up to 5gb), which i need to serialize if the memory increases and deserialize them on demand.
Last recently used strategy
I want to handle serialization/deserializtion on my own, this means i just want to know from the framework when I have to serialize. Deserializing is on user demand.
I want to have minimum IO as I have big data
If there is no direct framework for this, maybe you can point me to a heuristik or any other strategy? SoftReferences/WeakReference as a solution do not work, as i can't serialize, even if I get noticed when they are garbage collected (to less memory left for serializing or even worse: file gone before serialization).
Thanks!