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 AdvancedKeyValueSource<K,V> Deprecated. Cache<K,V> A cache is similar to a map or a key value store, allowing to retrieve and update values which are associated to keys.CacheEntry<K,V> Object representing a cache entry.CacheOperationCompletionListener Deprecated. to be removed in 2.2Customization 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.KeyValueStore<K,V> Deprecated. -
Class Summary Class Description AbstractCache<K,V> Base class for implementations of the cache interface.Cache2kBuilder<K,V> Builder to create aCacheinstance.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 CacheException Base class of all cache exceptions.CustomizationException Wraps an exception thrown from a cache customization such as theExpiryPolicyorCacheLoader.