Package org.qi4j.api.cache

Cache API/SPI

See:
          Description

Class Summary
CacheOptions CacheOptions is a metaInfo class for the Cache system for Entity persistence.
 

Package org.qi4j.api.cache Description

Cache API/SPI

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.