summaryrefslogtreecommitdiff
path: root/requests_cache/backends/redis.py
Commit message (Collapse)AuthorAgeFilesLines
* Set default serializers for each backend using param defaults instead of ↵Jordan Cook2023-01-131-11/+9
| | | | 'default_serializer' class attributes
* Make CachedResponse.cache_key available from all cache access methodsJordan Cook2022-12-301-5/+7
|
* Update type hints to appease Pylance and stricter mypy settingsJordan Cook2022-12-131-4/+8
|
* Add ttl_offset argument for Redis backendJordan Cook2022-09-301-7/+17
|
* Add a BaseStorage.default_serializer attribute, to be more explicit about ↵Jordan Cook2022-04-221-5/+11
| | | | which backends use something other than pickle by default
* For SQLite expires column, use time.time() instead of datetime.timestamp()Jordan Cook2022-04-221-4/+4
|
* Merge *PickleDict storage classes into parent classesJordan Cook2022-04-221-6/+7
|
* Fix parameter forwarding for redis-py 4.2 and pymongo 4.1 on python <=3.8Jordan Cook2022-04-211-1/+1
|
* Ensure BaseCache.cache_name gets set if a backend class is initialized ↵Jordan Cook2022-04-191-1/+1
| | | | directly (mainly for debug/logging purposes)
* Close database connections (if applicable) on CachedSession.__exit__ and close()Jordan Cook2022-04-181-0/+3
|
* 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-61/+0
|
* Use a set_ttl() method instead of keyword argument, since it should only be ↵Jordan Cook2022-04-151-5/+29
| | | | set once (or overwritten)
* Add some more notes about SQLite and Redis backendsJordan Cook2022-04-111-5/+20
|
* Add 'Use Cases' section to each backend's docsJordan Cook2022-03-171-3/+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-011-13/+91
| | | | of in a single hash
* Improve some RedisDict methods and rename to RedisHashDictJordan Cook2021-12-011-24/+44
|
* Move misc minor utils to a separate moduleJordan Cook2021-10-271-1/+2
|
* Add some notes about Redis persistenceJordan Cook2021-08-251-3/+10
|
* Better backend docsJordan Cook2021-08-201-13/+34
|
* Integrate serializers with backendsJordan Cook2021-06-111-7/+8
|
* Adjust line length for black + isortJordan Cook2021-04-301-1/+3
|
* Implement a faster bulk delete method for each backendJordan Cook2021-04-301-0/+7
| | | | | * Instead of checking each deleted response for redirects to delete, just delete redirects that point to a non-existing response. In most cases this results in much fewer calls. * Remove usage of deprecated pymongo `Collection.find_and_modify()`
* Move storage class __str__ methods to base class, and just show keys instead ↵Jordan Cook2021-04-221-3/+0
| | | | of items
* Allow passing any valid backend connection kwargs via BaseCacheJordan Cook2021-04-191-11/+10
| | | | | | | | * Pass `**kwargs` to backend storage classes, split out any that are valid for the backend-specific connection function/class, and pass them to the connection * Add intersphinx links to docs for dependencies * Update and format some more backend class docstrings * Remove 'Unrecognized keyword arguments' warning from `BaseStorage` * Turn `warnings.warn` about using secret keys into a `logging.warning` (due to complaints about too many messages)
* Pass along optional kwargs to all storage classes, and make default table ↵Jordan Cook2021-03-241-4/+5
| | | | names consistent across backends (`'http_cache'`)
* Combine storage classes from backends.storage.* with their respective ↵Jordan Cook2021-03-241-17/+60
| | | | backends in backends.*
* Rename BaseCache.keys_map property and its associated table to 'redirects'Jordan Cook2021-03-241-1/+1
|
* Refactor CachedSession to be usable as a mixin classJordan Cook2021-03-041-1/+1
|
* Remove all python 2 compatibilityJordan Cook2021-02-261-1/+0
|
* Apply code formatting with black + isortJordan Cook2021-02-261-4/+3
|
* #6 Add optional support for including headers to cache key in GET requestsRoman Haritonov2015-01-171-1/+1
|
* pep8Roman Haritonov2015-01-171-1/+1
|
* remove RedisPickleDict, because it's the same as RedisDictRoman Haritonov2013-04-181-2/+2
|
* Added Redis Backendmichaelbeaumont2013-04-171-0/+24