RequestCacheConfig

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

Bases: BaseConfigModel

Inheritance diagram of RequestCacheConfig

Inheritance Diagram for RequestCacheConfig

Methods

as_kwargs()

model_post_init(context)

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_weakref

as_kwargs() dict[str, Any][source]
Return type:

dict[str, Any]

backend: RequestsCacheBackend
property backend_effective: RequestsCacheBackend
cache_name: str
property cache_name_effective: Path
expire_after: Annotated[int, Gt(gt=0)] | None
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, 'serialize_by_alias': True, 'validate_assignment': True, 'validate_by_alias': True}

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

model_post_init(context: Any) None
Parameters:

context (Any)

Return type:

None

root_dir: RequestsCacheRootDir
root_dir_as_dict() dict[str, Any][source]
Return type:

dict[str, Any]

validate_filetype() Self[source]

Validate the filetype is compatible with the backend.

Return type:

Self