Cache¶
_cache
¶
Cache directory management for povineq.
delete_cache()
¶
Delete all cached HTTP responses.
Removes the entire cache directory and re-creates an empty one so subsequent calls can start fresh.
Example
import povineq povineq.delete_cache()
Source code in src/povineq/_cache.py
get_cache_info()
¶
Return statistics about the current HTTP response cache.
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
A dictionary with keys: |
dict[str, object]
|
|
dict[str, object]
|
|
dict[str, object]
|
|
Example
import povineq info = povineq.get_cache_info() print(info["n_files"])