Class HttpByteArrayCacheEntrySerializer.NoAgeCacheValidityPolicy

  • Enclosing class:
    HttpByteArrayCacheEntrySerializer

    private static class HttpByteArrayCacheEntrySerializer.NoAgeCacheValidityPolicy
    extends CacheValidityPolicy
    Cache validity policy that always returns an age of TimeValue.ZERO_MILLISECONDS. This prevents the Age header from being written to the cache (it does not make sense to cache it), and is the only thing the policy is used for in this case.
    • Constructor Detail

      • NoAgeCacheValidityPolicy

        private NoAgeCacheValidityPolicy()