Interface CacheConfigurationBuilder

All Known Implementing Classes:
DefaultCacheConfigurationBuilder

public interface CacheConfigurationBuilder
A Builder to specify configuration for Cache regions. This is usually used while building a CacheManager via the CacheManagerBuilder. CacheConfigurationBuilders can be constructed with the Caches utility class. For example:
 Caches.named("cacheRegionNameHere")
     .withTimeToLive(1, TimeUnit.DAYS)
     .withTimeToIdle(2, TimeUnit.HOURS);
 
or
 Caches.forResource(Account.class)
     .withTimeToLive(1, TimeUnit.DAYS)
     .withTimeToIdle(2, TimeUnit.HOURS);
 
Since:
0.5.0
See Also: