CacheSettings
🛈 DocStrings¶
Where and how long responses are cached (enabled=False: not at all).
Source code in src/anyenv/download/session.py
create
classmethod
¶
create(
cache: bool | None = False,
cache_dir: StrPath | None = None,
cache_ttl: int | str | None = None,
cache_backend: CacheType = "file",
) -> CacheSettings
Resolve the defaults (user cache dir, one hour) and parse a TTL like "1d".