RequestCacheConfig

class app.util.requests.config.cache.RequestCacheConfig[source]

Bases: BaseConfigModel

Inheritance diagram of RequestCacheConfig

Inheritance Diagram for RequestCacheConfig

Methods

as_kwargs()

root_dir_as_dict()

validate_filetype()

Validate the filetype is compatible with the backend.

Attributes

backend_effective

cache_name_effective

expire_after_effective

filetype_effective

ignored_parameters_effective

model_config

Configuration for the model, should be a dictionary conforming to ConfigDict.

cache_name

root_dir

backend

filetype

expire_after

ignored_parameters

inherited

defaulted

instance_name

instance_parent

as_kwargs()[source]
Return type:

dict[str, Any]

backend: RequestsCacheBackend
property backend_effective: RequestsCacheBackend
cache_name: str
property cache_name_effective: str
expire_after: Optional[Annotated[int]]
property expire_after_effective: Annotated[int, Gt(gt=0)] | None
filetype: RequestsCacheFileType
property filetype_effective: RequestsCacheFileType
ignored_parameters: list[str]
property ignored_parameters_effective: list[str]
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}

Configuration for the model, should be a dictionary conforming to ConfigDict.

root_dir: RequestsCacheRootDir
root_dir_as_dict()[source]
Return type:

dict[str, Any]

validate_filetype()[source]

Validate the filetype is compatible with the backend.

Return type:

RequestCacheConfig