Skip navigation links

Package org.apache.polygene.api.cache

Cache API.

See: Description

Package org.apache.polygene.api.cache Description

Cache API.

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 EntityStore whether the cache extension can bring any benefits or not.

Skip navigation links