# Package org.apache.hc.client5.http.cache

Caching APIs for both the classic and the asynchronous HTTP transports.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  HttpAsyncCacheInvalidator | Deprecated Do not use.
  HttpAsyncCacheStorage | HttpAsyncCacheStorage represents an abstract HTTP cache storage backend that can then be plugged into the asynchronous (non-blocking ) request execution pipeline.
  HttpCacheCASOperation | Atomic Compare-And-Swap (CAS) cache operation.
  HttpCacheEntrySerializer<T> | Serializer / deserializer for `HttpCacheStorageEntry` entries.
  HttpCacheInvalidator | Deprecated Do not use.
  HttpCacheStorage | HttpCacheStorage represents an abstract HTTP cache storage backend that can then be plugged into the classic (blocking) request execution pipeline.
  ResourceFactory | Generates `Resource` instances for handling cached HTTP response bodies.

- Class Summary
  Class | Description
  --- | ---
  HeaderConstants | Records static constants for caching directives.
  HttpAsyncCacheStorageAdaptor | `HttpAsyncCacheStorage` implementation that emulates asynchronous behavior using an instance of classic `HttpCacheStorage`.
  HttpCacheContext | Adaptor class that provides convenience type safe setters and getters for caching `HttpContext` attributes.
  HttpCacheEntry | Structure used to store an `HttpResponse` in a cache.
  HttpCacheEntryFactory | `HttpCacheEntry` factory.
  HttpCacheStorageEntry | This class contains a `HttpCacheEntry` along with its key.
  Resource | Represents a disposable system resource used for handling cached response bodies.

- Enum Summary
  Enum | Description
  --- | ---
  CacheResponseStatus | This enumeration represents the various ways a response can be generated by the caching `HttpClient`; if a request is executed with an `HttpCacheContext` then a parameter with one of these values will be registered in the context under the key `HttpCacheContext.CACHE_RESPONSE_STATUS`.

- Exception Summary
  Exception | Description
  --- | ---
  HttpCacheUpdateException | Signals that `HttpCacheStorage` encountered an error performing an update operation.
  ResourceIOException | Signals a generic resource I/O error.

## Package org.apache.hc.client5.http.cache Description

Caching APIs for both the classic and the asynchronous HTTP transports.

Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.