|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
CacheOptions | CacheOptions is a metaInfo class for the Cache system for Entity persistence. |
The Cache API/SPI is an extension point for Entity Store caching.
The API part is only to allow caching options to be passed to the underlying extension in a uniform and standard way. CacheOptions are to be passed as meta info on the optional Cache extension that is specified during assembly phase. Example;
public void assemble( ModuleAssembly module )
{
CacheOptions options = new CacheOptions( true, true, false );
module.addServices( EhCacheService.class ).setMetaInfo( options );
}
Not all EntityStore implementations use the Cache extension, so check the implementation details of the entity store whether the cache extension can bring any benefits or not.
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |