harp_apps.http_client.settings.cache

Inheritance diagram of harp_apps.http_client.settings.cache

class CacheSettings[source]

Bases: Configurable

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

controller: Service
enabled: bool

Global cache flag, set to false to disable caching.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

storage: Service
transport: Service

Cache transport to use for the client. This is usually a hishel.AsyncCacheTransport (or subclass) instance.