summaryrefslogtreecommitdiff
path: root/dogpile/cache/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'dogpile/cache/api.py')
-rw-r--r--dogpile/cache/api.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/dogpile/cache/api.py b/dogpile/cache/api.py
index 0717d43..c773463 100644
--- a/dogpile/cache/api.py
+++ b/dogpile/cache/api.py
@@ -51,6 +51,15 @@ Serializer = Callable[[ValuePayload], bytes]
Deserializer = Callable[[bytes], ValuePayload]
+class CantDeserializeException(Exception):
+ """Exception indicating deserialization failed, and that caching
+ should proceed to re-generate a value
+
+ .. versionadded:: 1.2.0
+
+ """
+
+
class CacheMutex(abc.ABC):
"""Describes a mutexing object with acquire and release methods.