summaryrefslogtreecommitdiff
path: root/HISTORY.md
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook.git@proton.me>2022-08-14 19:02:18 -0500
committerJordan Cook <jordan.cook.git@proton.me>2022-08-23 14:36:40 -0500
commit5691838ac65bf7a3d80a66b4ae3b1fafb40b68a2 (patch)
tree92d8072427a4ae2918dca836635b566c3f23baf6 /HISTORY.md
parent4a9fb218999460636963b7c4b68e858d40fa6c71 (diff)
downloadrequests-cache-5691838ac65bf7a3d80a66b4ae3b1fafb40b68a2.tar.gz
Add method to recreate cache keys
Diffstat (limited to 'HISTORY.md')
-rw-r--r--HISTORY.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/HISTORY.md b/HISTORY.md
index 042645c..e1b3590 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -55,6 +55,7 @@
* Add serializer name to cache keys to avoid errors due to switching serializers
* Always skip both cache read and write for requests excluded by `allowable_methods` (previously only skipped write)
* Ignore and redact common authentication headers and request parameters by default. This provides some default recommended values for `ignored_parameters`, to avoid accidentally storing common credentials (e.g., OAuth tokens) in the cache. This will have no effect if you are already setting `ignored_parameters`.
+* Support distinct matching for requests that differ by duplicate request params (e.g, `a=1` vs `?a=1&a=2`)
**Cache convenience methods:**
* Add `expired` and `invalid` arguments to `BaseCache.delete()` (to replace `remove_expired_responses()`)
@@ -63,6 +64,8 @@
* Add `BaseCache.contains()` method to check for cached requests either by key or by `requests.Request` object
* Add `BaseCache.filter()` method to get responses from the cache with various filters
* Add `BaseCache.reset_expiration()` method to reset expiration for existing responses
+* Add `BaseCache.recreate_keys()` method to recreate cache keys for all previously cached responses
+ (e.g., to preserve cache data after an update that changes request matching behavior)
* Update `BaseCache.urls` into a method that takes optional filter params, and returns sorted unique URLs
**Type hints:**