API Reference#

This section covers all the public interfaces of requests-cache.

Tip

It’s recommended to import from the top-level requests_cache package, as internal module paths may be subject to change. For example:

from requests_cache import CachedSession, RedisCache, json_serializer

Primary Modules#

The following modules include the majority of the API relevant for most users:

Secondary Modules#

The following modules are mainly for internal use, and are relevant for contributors and advanced users: