Package com.evanmclean.evlib.cache

Implements caches that are thread-safe, expire entries after a specified time-to-live, can be bound to a maximum number of entries, and can contain strong, soft or weak references to their values.

See:
          Description

Interface Summary
CacheValueDisposer<V> Called to clean up value objects in a cache that are removed because they've expired or by calling Map.clear().
ConcurrentHashMapCache<K,V> A thread-safe hash map where the entries expire after a specified time-to-live.
 

Class Summary
CacheBuilder
CacheManager Manages a set of ConcurrentHashMapCache caches.
CloseableValueDisposer<V extends Closeable> A CacheValueDisposer for objects that implement the Closeable interface.
 

Enum Summary
CacheReferenceType Indicates how values in a ConcurrentHashMapCache are referenced.
 

Exception Summary
CacheExistsException Thrown by CacheManager.getCache(String) if the requested cache does not exist.
UnknownCacheException Thrown by CacheManager.getCache(String) if the requested cache does not exist.
 

Package com.evanmclean.evlib.cache Description

Implements caches that are thread-safe, expire entries after a specified time-to-live, can be bound to a maximum number of entries, and can contain strong, soft or weak references to their values.