diff options
author | Jordan Cook <jordan.cook.git@proton.me> | 2022-09-29 14:05:51 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook.git@proton.me> | 2022-09-29 14:05:51 -0500 |
commit | ba8fe3770c38c60b94b055fd546ec009b809f43f (patch) | |
tree | 98c34460ff23184790a10d2441d40aaf31242341 /docs/user_guide | |
parent | 662ce95795574fcc5c4a36ac7d5eb0fd409c9310 (diff) | |
download | requests-cache-ba8fe3770c38c60b94b055fd546ec009b809f43f.tar.gz |
Add delete() function for patcher
Diffstat (limited to 'docs/user_guide')
-rw-r--r-- | docs/user_guide/expiration.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/user_guide/expiration.md b/docs/user_guide/expiration.md index 5ceefb5..ef1d9e1 100644 --- a/docs/user_guide/expiration.md +++ b/docs/user_guide/expiration.md @@ -165,7 +165,8 @@ To delete expired responses, use {py:meth}`.BaseCache.delete`: Or, if you have patched ``requests`` using {py:func}`.install_cache`: ```python ->>> requests_cache.remove_expired_responses() +>>> import requests_cache +>>> requests_cache.delete(expired=True) ``` You can also remove responses older than a certain time: |