Package org.biojava.utils.cache
A simple cache system with pluggable caching behaviours.
-
Interface Summary Interface Description Cache Interface for managing caches of objects.CacheMap Interface for managing caches of objects fetchable by key.CacheReference Interface for a reference to an object, analogous tojava.lang.ref.Referencce
, but more flexible. -
Class Summary Class Description ChangeableCache A cache that clears values as the keys fire ChangeEvents of a given type.FixedSizeCache Cache which stores up tolimit
Objects.FixedSizeMap A cache that only remembers a given number of keys.KeyedWeakReference Subclass of WeakReference which includes and extra field (the key) which can be used to help cleanup once this reference has been enqueued.SoftReferenceCache Cache which is cleared according to memory pressure.WeakCacheMap A cache which retains weak references to objectsWeakValueHashMap Map implementation which keeps weak references to values.