title: How to cache *any* object type to memory/disk in java?
body: <p>Is there a generic way to cache any type of object (be in a java class, or a word document etc.) to memory or disk?</p>
  
  <p>Is simply serializing the object, and retaining the file extension (if it has one) enough to rebuild the object?</p>