A simple cache system with pluggable caching behaviours.
Interface Summary Interface Description CacheInterface for managing caches of objects. CacheMapInterface for managing caches of objects fetchable by key. CacheReferenceInterface for a reference to an object, analogous to
java.lang.ref.Referencce, but more flexible.
Class Summary Class Description ChangeableCacheA cache that clears values as the keys fire ChangeEvents of a given type. FixedSizeCacheCache which stores up to
FixedSizeMapA cache that only remembers a given number of keys. KeyedWeakReferenceSubclass of WeakReference which includes and extra field (the key) which can be used to help cleanup once this reference has been enqueued. SoftReferenceCacheCache which is cleared according to memory pressure. WeakCacheMapA cache which retains weak references to objects WeakValueHashMapMap implementation which keeps weak references to values.