summaryrefslogtreecommitdiff
path: root/HISTORY.md
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook.git@proton.me>2022-08-14 19:30:52 -0500
committerJordan Cook <jordan.cook.git@proton.me>2022-08-23 14:36:40 -0500
commit57c1b60937d728bddfb5f769e67338da3719ca8b (patch)
tree92d8072427a4ae2918dca836635b566c3f23baf6 /HISTORY.md
parent4a9fb218999460636963b7c4b68e858d40fa6c71 (diff)
parent5691838ac65bf7a3d80a66b4ae3b1fafb40b68a2 (diff)
downloadrequests-cache-57c1b60937d728bddfb5f769e67338da3719ca8b.tar.gz
Merge pull request #681 from requests-cache/recreate-keys
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:**