summaryrefslogtreecommitdiff
path: root/requests_cache/backends
Commit message (Collapse)AuthorAgeFilesLines
...
* Update general expiration docsJordan Cook2022-04-151-0/+2
|
* Add notes on viewing responses in MongoDBJordan Cook2022-04-151-2/+19
|
* Use BSON preconf stage and store response values under top-level keys, so ↵Jordan Cook2022-04-151-27/+26
| | | | created_at attribute is compatible with TTL index
* Use a set_ttl() method instead of keyword argument, since it should only be ↵Jordan Cook2022-04-152-36/+106
| | | | set once (or overwritten)
* Improvements for MongoDB:Jordan Cook2022-04-151-9/+70
| | | | | * Use native document format (BSON) instead of binary blob * Add option to use native TTL feature
* Add some more notes about SQLite and Redis backendsJordan Cook2022-04-112-5/+38
|
* Add SQLiteDict.sorted() method with sorting and other query optionsJordan Cook2022-04-101-0/+55
|
* Use Unix time integer instead of datetime string, and use same time source ↵Jordan Cook2022-04-101-3/+5
| | | | on both write (setitem) and read (clear_expired)
* LEFT JOIN option is slightly fasterJordan Cook2022-04-101-10/+1
|
* WIP: Add faster implementation of removing invalid redirects in SQLJordan Cook2022-04-102-7/+32
|
* Add indexed datetime column to SQLite backend for faster evictionJordan Cook2022-04-101-13/+41
|
* Refactor refresh/revalidate behaviorJordan Cook2022-04-091-2/+4
| | | | | | | | | | | | | | | * Rename two (unreleased) options to be more consistent with browser behavior: * `revalidate()` -> `refresh()` * `refresh()` -> `force_refresh()` * Revert `RequestSettings` changes and use just kwargs instead for per-request settings * Add full type hints back to extra kwargs for `CachedSession.send()` * Fix a bug in which some kwargs specific to requests-cache could get passed to `requests.Session.send()` * Use 'must-revalidate' as a temporary header for a user-requested refresh * Refer to expiration value of 0 more accurately as 'expire immediately' rather than 'do not cache' * It may potentially be saved and used with revalidation, depending on other headers/settings * `DO_NOT_CACHE` now has a different value but same effect * Refer to constants in docs instead of 0, -1, etc. * Log more details about post-read and pre-cache checks
* Update tests, changelog, and contributorsJordan Cook2022-04-061-3/+3
|
* wal modeDaniel Holth2022-04-061-0/+5
|
* Add an intermediate wrapper class, OriginalResponse, to provide type hints ↵Jordan Cook2022-04-011-3/+5
| | | | for extra attributes set on requests.Response objects
* Move settings module to top level package, and leave 'models' subpackage for ↵Jordan Cook2022-04-011-1/+1
| | | | only serialized data models
* Add argument docs back to CachedSession.__init__ instead of generic ↵Jordan Cook2022-04-011-13/+14
| | | | **kwargs; init settings in CachedSession instead of BaseCache
* Remove some redundant, undocumented means of passing ↵Jordan Cook2022-04-011-7/+7
| | | | CachedSession/BaseBackend arguments
* More code cleanup and commentsJordan Cook2022-03-291-29/+9
|
* Split datetime-related utility functions into a separate moduleJordan Cook2022-03-291-1/+1
|
* Refactor session-level settings into separate CacheSettings classJordan Cook2022-03-292-46/+27
|
* Add 'Use Cases' section to each backend's docsJordan Cook2022-03-176-11/+51
|
* Swap out appdirs for platformdirsJordan Cook2022-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | * platformdirs is a more actively maintained fork of appdirs. * Also relax requirements a bit for attrs and urllib (minimum instead of caret constraint) Dependabot update: Bump responses from 0.16.0 to 0.19.0 Bumps [responses](https://github.com/getsentry/responses) from 0.16.0 to 0.19.0. - [Release notes](https://github.com/getsentry/responses/releases) - [Changelog](https://github.com/getsentry/responses/blob/master/CHANGES) - [Commits](https://github.com/getsentry/responses/compare/0.16.0...0.19.0) --- updated-dependencies: - dependency-name: responses dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* Reword inaccurate usage of the term 'revalidate'Jordan Cook2022-03-111-6/+6
|
* Handle CorruptGridFile error in GridFS backendJordan Cook2022-02-221-6/+11
|
* Add lock around remove_expired_responses() for SQLite, Filesystem, and ↵Jordan Cook2022-02-223-0/+12
| | | | GridFS backends
* Improve filesystem backend thread safetyJordan Cook2022-02-221-3/+7
|
* Improve GridFS backend thread safetyJordan Cook2022-02-221-13/+24
|
* Fix race condition with dropping and recreating SQLite tables in multiple ↵Jordan Cook2022-02-221-4/+5
| | | | threads
* Fix cache path expansionAndrew Stone2022-02-171-1/+1
|
* Fix serialization in filesystem backend with binary content that is also ↵Jordan Cook2022-02-151-12/+4
| | | | valid UTF-8
* Fix typo in docsJordan Cook2022-01-011-2/+2
|
* Format using a more typical line length of 100Jordan Cook2022-01-011-2/+6
|
* Drop idea of storing each response in a separate hash, and go back to ↵Jordan Cook2021-12-011-19/+9
| | | | | | serialized blobs Can't store nested dicts in a Redis hash
* Add a new RedisDict class that stores responses in separate hashes instead ↵Jordan Cook2021-12-012-15/+93
| | | | of in a single hash
* Improve some RedisDict methods and rename to RedisHashDictJordan Cook2021-12-012-26/+46
|
* Add support for BaseCache keyword arguments passed along with a backend instanceJordan Cook2021-11-132-7/+31
|
* Fix a new type checking issueJordan Cook2021-10-271-1/+1
|
* Move misc minor utils to a separate moduleJordan Cook2021-10-276-15/+11
|
* Add tests for memory (plain dict) backendJordan Cook2021-10-231-1/+1
|
* Move response content reset to DictStorage.__getitem__(), since that's the ↵Jordan Cook2021-10-231-2/+10
| | | | only place it's used
* Fix duplicate cache read (contains + getitem)Jordan Cook2021-10-231-5/+5
|
* Add better error message if parent path exists but isn't a directoryJordan Cook2021-10-101-6/+11
|
* Reorganize & improve request normalization functions:Jordan Cook2021-09-201-3/+2
| | | | | | | | | | | | * Handle all normalization in `cache_keys` module, get rid of `normalize_dict()` function used in `CachedSession` * Reorganize `cache_keys` helper functions into the following: * `normalize_request()` * `normalize_url()` * `normalize_headers()` * `normalize_params()` * `normalize_body()` * `normalize_json_body()` * `redact_response()`
* Redact ingored_parameters from CachedResponse.urlJordan Cook2021-09-151-1/+2
|
* Add some alises so fully qualified imports of DbDict, etc. don't breakJordan Cook2021-09-142-1/+7
|
* Re-enable mypy pre-commit hook with attrs as an explicit hook dependency for ↵Jordan Cook2021-09-081-2/+4
| | | | correct mypy-attrs behavior
* Add note about 'cache_name' argument usage in init_backend()Jordan Cook2021-09-061-10/+10
|
* Fix SQLiteCache.db_path; supposed to be a property, not a methodJordan Cook2021-09-061-0/+1
|
* Allow match_headers to optionally accept a list of specific headers to matchJordan Cook2021-09-061-2/+2
|