summaryrefslogtreecommitdiff
path: root/requests_cache/backends/filesystem.py
Commit message (Collapse)AuthorAgeFilesLines
* Enable bugbear extension and fix warningsJordan Cook2023-05-081-1/+1
|
* Set default serializers for each backend using param defaults instead of ↵Jordan Cook2023-01-131-5/+6
| | | | 'default_serializer' class attributes
* Make CachedResponse.cache_key available from all cache access methodsJordan Cook2022-12-301-1/+1
|
* Update type hints to appease Pylance and stricter mypy settingsJordan Cook2022-12-131-3/+3
|
* Consolidate BaseCache convenience methods into contains(), filter(), and ↵Jordan Cook2022-06-111-2/+2
| | | | delete()
* Split up remove_expired_reponses() into remove() and reset_expiration() ↵Jordan Cook2022-06-111-2/+2
| | | | methods, with more granular arguments
* Add decode_content option for storage classes, and use as the default ↵Jordan Cook2022-06-101-2/+11
| | | | behavior for Filesystem, DynamoDB, and MongoDB backends
* Add a BaseStorage.default_serializer attribute, to be more explicit about ↵Jordan Cook2022-04-221-2/+4
| | | | which backends use something other than pickle by default
* Merge *PickleDict storage classes into parent classesJordan Cook2022-04-221-2/+2
|
* Ensure BaseCache.cache_name gets set if a backend class is initialized ↵Jordan Cook2022-04-191-1/+1
| | | | directly (mainly for debug/logging purposes)
* Move backend docs to user guide, separate from API reference docsJordan Cook2022-04-171-1/+7
|
* Move detailed backend docs from rst docstings to md filesJordan Cook2022-04-161-56/+0
|
* Add 'Use Cases' section to each backend's docsJordan Cook2022-03-171-4/+23
|
* Add lock around remove_expired_responses() for SQLite, Filesystem, and ↵Jordan Cook2022-02-221-0/+4
| | | | GridFS backends
* Improve filesystem backend thread safetyJordan Cook2022-02-221-3/+7
|
* Fix serialization in filesystem backend with binary content that is also ↵Jordan Cook2022-02-151-12/+4
| | | | valid UTF-8
* Re-enable mypy pre-commit hook with attrs as an explicit hook dependency for ↵Jordan Cook2021-09-081-2/+4
| | | | correct mypy-attrs behavior
* Use pathlib.Path objects for all file paths in Filesystem and SQLite backendsJordan Cook2021-08-291-30/+29
|
* Reorganize user docs: break down User Guide and Advanced Usage sections into ↵Jordan Cook2021-08-261-1/+1
| | | | smaller pages
* Move 'Cache Files' docs that apply to both SQLite and Filesystem backends to ↵Jordan Cook2021-08-251-3/+3
| | | | main User Guide page
* Add FileCache.cache_dir propertyJordan Cook2021-08-251-0/+5
|
* Fix incorrect location of redirects.sqlite when using filesystem backendJordan Cook2021-08-231-4/+12
|
* Add appdirs as a dependency, and add 'use_cache_dir' option to SQLite and ↵Jordan Cook2021-08-211-16/+12
| | | | Filesystem backends
* Add FileCache.paths() wrapper method, and return a list instead of generatorJordan Cook2021-08-201-8/+19
|
* Better backend docsJordan Cook2021-08-201-3/+31
|
* Rename DbDict to SQLiteDict for consistency with other backends (with ↵Jordan Cook2021-08-191-2/+2
| | | | aliases for backwards-compatibility)
* For filesystem backend, add an appropriate file extension to cache filesJordan Cook2021-08-031-8/+23
|
* Some serialization fixes & updates:Jordan Cook2021-07-031-1/+0
| | | | | | | | | | | | | | | | | * Fix tests on python 3.6: * Make `cattrs` optional again * Don't run tests for serializers with missing optional dependencies * Show any skipped tests in pytest output * Fix redirect serialization for backends that serialize all values (DynamoDB and Redis) * Otherwise, the redirect value (which is just another key) will get converted into a `CachedResponse` * Make `pickle` serializer use `cattrs` if installed * Make `bson` serializer compatible with both `pymongo` version and standalone `bson` library * Split up `CattrStage` and preconf converters into separate modules * Turn preconf converters into `Stage` objects * Add `DeprecationWarning` for previous method of using `itsdangerous`, now that there's a better way to initialize it via `SerializerPipeline` * Remove `suppress_warnings` kwarg that's now unused * Make `SerializerPipeline`, `Stage`, and `CattrStage` importable from top-level package (`from requests_cache import ...`) * Add some more details to docs and docstrings
* addressing comments from JWCookParker Hancock2021-06-211-2/+1
|
* extirpated 'is_binary' from pipelinesParker Hancock2021-06-141-4/+13
|
* Integrate serializers with backendsJordan Cook2021-06-111-4/+6
|
* Make cattrs optional, and other cleanupJordan Cook2021-05-261-1/+0
|
* Add use_temp option to SQLite backendJordan Cook2021-04-221-0/+3
| | | | Closes #243
* Store responses for filesystem backend in a 'responses' subdirectory, to ↵Jordan Cook2021-04-221-5/+7
| | | | avoid deleting redirects.sqlite with clear()
* For SQLite and filesystem backends, resolve file paths in BaseStorage class ↵Jordan Cook2021-04-211-6/+5
| | | | rather than BaseCache class
* Add a filesystem backendJordan Cook2021-04-211-0/+87