Skip to content

Commit 09eec9c

Browse files
committed
Set default timeout when using db.cache() to None.
1 parent d470483 commit 09eec9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

walrus/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def hash_exists(self, key):
208208
def autocomplete(self, namespace='autocomplete', **kwargs):
209209
return Autocomplete(self, namespace, **kwargs)
210210

211-
def cache(self, name='cache', default_timeout=3600):
211+
def cache(self, name='cache', default_timeout=None):
212212
"""
213213
Create a :py:class:`Cache` instance.
214214

0 commit comments

Comments
 (0)