diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2021-08-28 15:52:24 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2021-08-28 15:52:26 -0500 |
commit | df5118ecbfb6b2333ab425884fffef40de13d97e (patch) | |
tree | c867076d18f5b3bb94945e0af722f1651ab323ef /HISTORY.md | |
parent | 60f4bb089c794ebc797cd016bbb9cd5ba5845ba0 (diff) | |
download | requests-cache-df5118ecbfb6b2333ab425884fffef40de13d97e.tar.gz |
Allow has_url(), delete_url(), and create_key() to optionally take requests.Request arguments
Diffstat (limited to 'HISTORY.md')
-rw-r--r-- | HISTORY.md | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -17,11 +17,14 @@ * SQLite: Add `SQLiteCache.db_path` property **Serialization:** -* Use `cattrs` for serialization by default, which enables a more forwards-compatible serialization format - (e.g., less prone to invalidation due to future updates) +* Use `cattrs` by default for optimized serialization **Other features:** * Add `BaseCache.update()` method as a shortcut for exporting to a different cache instance +* Allow `BaseCache.has_url()` and `delete_url()` to optionally take arguments for `requests.Request` + instead of just a URL +* Allow `create_key()` to optionally take arguments for `requests.Request` instead of a request + object * Add support for custom cache key callbacks with `key_fn` parameter * Slightly reduce size of serialized responses |