Package org.cache2k
Main package for cache2k API containing functions to build and access a cache.
A Cache
can be created the Cache2kBuilder
. Besides,
the parameters that can be set via the builder, a cache can be further customized and extended
via a CacheLoader
, CacheWriter
,
ExpiryPolicy
or ResiliencePolicy
.
- Author:
- Jens Wilke
- See Also:
- cache2k User Guide
-
Interface Summary Interface Description Cache<K,V> A cache is similar to a map or a key value store, allowing to retrieve and update values which are associated with keys.CacheEntry<K,V> Object representing a cache entry.Customization A customization dealing with cached data.DataAware<K,V> Parent for all interfaces dealing with cached data.DataAwareCustomization<K,V> Parent for all customizations dealing with cached data.KeyValueSource<K,V> Reduced interface to return a value selected by a key object. -
Class Summary Class Description AbstractCache<K,V> Base class for implementations of the cache interface.Cache2kBuilder<K,V> Builder to create aCache
instance.CacheManager A cache manager holds a set of caches.ForwardingCache<K,V> Wrapper class that forwards all method calls to a delegate. -
Exception Summary Exception Description CacheClosedException Consistently this exception is thrown, when an operation detects that the cache is closed.CacheException Base class of all cache exceptions.CustomizationException Wraps an exception thrown from a cache customization such as theExpiryPolicy
,CacheLoader
orCacheEntryOperationListener