We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae823d commit 4bf7f8bCopy full SHA for 4bf7f8b
django_mongodb_backend/cache.py
@@ -14,6 +14,7 @@ def __init__(self, protocol=None):
14
self.protocol = pickle.HIGHEST_PROTOCOL if protocol is None else protocol
15
16
def dumps(self, obj):
17
+ # Integers do not need serialization.
18
if isinstance(obj, int):
19
return obj
20
return pickle.dumps(obj, self.protocol)
0 commit comments