Class EhcacheHttpCacheStorage<T>

  • All Implemented Interfaces:
    HttpCacheStorage

    public class EhcacheHttpCacheStorage<T>
    extends AbstractSerializingCacheStorage<T,​T>

    This class is a storage backend for cache entries that uses the popular Ehcache cache implementation. In particular, this backend allows for spillover to disk, where the cache can be effectively larger than memory, and cached responses are paged into and out of memory from disk as needed.

    N.B. Since the Ehcache is configured ahead of time with a maximum number of cache entries, this effectively ignores the CacheConfig.getMaxCacheEntries() maximum cache entries} specified by a provided CacheConfig.

    Please refer to the Ehcache documentation for details on how to configure the Ehcache itself.

    Since:
    4.1