Class CacheConfig


  • public class CacheConfig
    extends Object
    Encodes the configuration for a cache into an object.
    Author:
    Aaron Zeckoski (azeckoski @ gmail.com)
    • Constructor Detail

      • CacheConfig

        public CacheConfig​(CacheConfig.CacheScope cacheScope)
        Configure the cache to use the given scope.
        Parameters:
        cacheScope - defines the lifecycle of the cache
    • Method Detail

      • getCacheScope

        public final CacheConfig.CacheScope getCacheScope()
        Returns:
        the scope of the associated cache