summaryrefslogtreecommitdiff
path: root/requests_cache/backends/dynamodb.py
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook.git@proton.me>2022-12-13 18:37:04 -0600
committerJordan Cook <jordan.cook.git@proton.me>2022-12-30 14:46:02 -0600
commit94a4449cdc05e1a1460a50f8d696f8032223558b (patch)
tree5442039d47d91723068776c1395996dc25a7037c /requests_cache/backends/dynamodb.py
parente8ea4ca58845afeda358c31c15dcdb28b2b62896 (diff)
downloadrequests-cache-94a4449cdc05e1a1460a50f8d696f8032223558b.tar.gz
Make CachedResponse.cache_key available from all cache access methods
Diffstat (limited to 'requests_cache/backends/dynamodb.py')
-rw-r--r--requests_cache/backends/dynamodb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/requests_cache/backends/dynamodb.py b/requests_cache/backends/dynamodb.py
index 721e256..875c1f7 100644
--- a/requests_cache/backends/dynamodb.py
+++ b/requests_cache/backends/dynamodb.py
@@ -146,7 +146,7 @@ class DynamoDbDict(BaseStorage):
# With a custom serializer, the value may be a Binary object
raw_value = result['Item']['value']
value = raw_value.value if isinstance(raw_value, Binary) else raw_value
- return self.deserialize(value)
+ return self.deserialize(key, value)
def __setitem__(self, key, value):
item = {**self._composite_key(key), 'value': self.serialize(value)}