Skip to content

Commit fb9dc80

Browse files
committed
Use datetime.max in no expirable entries
1 parent ef2add5 commit fb9dc80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_backend/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def incr(self, key, delta=1, version=None):
186186

187187
def _get_expiration_time(self, timeout=None):
188188
if timeout is None:
189-
return None
189+
return datetime.max
190190
timestamp = self.get_backend_timeout(timeout)
191191
return datetime.fromtimestamp(timestamp, tz=timezone.utc)
192192

0 commit comments

Comments
 (0)