Package is.galia.cache
package is.galia.cache
Package relating to all aspects of caching of images and their characteristics.
There are three main kinds of caches:
Variant cachescache post-processed (variant) images.Info cachescache image information.- The
heap info cachecaches image information in the heap, and may be used either on its own, or as a faster "level 1" cache in front of a "level 2" info cache.
Clients are encouraged to use a
CacheFacade to simplify
interactions with the caching architecture.
Writing Custom Caches
Custom variant caches must implement VariantCache. A single instance of the
cache will be shared across threads, so implementations must be
thread-safe.
Custom caches are auto-detected using ServiceLoader. Their JAR must include a file named Cache inside
resources/META-INF/services containing the fully qualified class name of
the implementation. Also, any references to the implementation from the
configuration file or delegate must use the fully qualified class name.
-
ClassDescriptionBase class for
Cacheimplementations.Stores and retrieves unique images corresponding toOperationListinstances, as well asInfoinstances corresponding toIdentifierinstances.Simplified interface to the caching architecture.Used to obtainCacheinstances according to the application configuration.Observer of cache operations that may complete asynchronously.Heap-based LRU cache.Cached item key.ObjectCache-backed cache forInfoinstances.Caches image information.Caches variant images.