Skip to content

Cache

Manage the in-memory result cache.

cache_info

cache_info() -> pd.DataFrame

Return a DataFrame describing currently cached entries.

cache_clear

cache_clear(pattern: str | None = None) -> int

Clear cached entries.

Parameters:

Name Type Description Default
pattern str | None

Optional substring; only keys containing it are removed. If omitted, the entire cache is cleared.

None

Returns:

Type Description
int

Number of entries removed.