|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
Cache<KeyType extends Serializable,ValueType extends Serializable> | The Cache interface represents a cache intended for
application-level caching. |
CachedObject.Computation<Key extends Serializable,Value extends Serializable> | Callback invoked to compute an object if it was not found in the cache. |
ComputedValue.Computation<T> | Computation |
Class Summary | |
---|---|
CachedObject<KeyType extends Serializable,ValueType extends Serializable> | Represents a cached object identified by the key it has in a certain
Cache . |
ComputedValue<T> | Utility class to deal with recomputation of a certain value. |
EhCache<KeyType extends Serializable,ValueType extends Serializable> | Cache implemented on top of EhCache. |
ForeverCache<KeyType extends Serializable,ValueType extends Serializable> | A very simple cache based on a HashMap, It never expires any entries, and has no bounds on its size. |
ZeroCache<KeyType extends Serializable,ValueType extends Serializable> | A cache that does not cache. |
This package provides an interface for a cache together with several implementations. The main interfaces and classes are:
Cache
: An interface representing an application-level cache with objects in the
cache identified by keys.
CachedObject
: An object representing an object in a cache identified through a
key. Upon expiry the cached object invokes a callback to recompute (and cache) the object
again.
ComputedValue
: An object caching a computed value with a computation interface
determining whether the object is out of date and allowing recomputation of the value.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |