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.
ttl
1 parent b620ef9 commit 072b7e1Copy full SHA for 072b7e1
src/cachetools/func.py
@@ -92,6 +92,8 @@ def ttl_cache(maxsize=128, ttl=600, timer=time.monotonic, typed=False):
92
"""Decorator to wrap a function with a memoizing callable that saves
93
up to `maxsize` results based on a Least Recently Used (LRU)
94
algorithm with a per-item time-to-live (TTL) value.
95
+
96
+ By default, the time-to-live is set to 600 seconds (10 minutes).
97
"""
98
if maxsize is None:
99
return _cache(_UnboundTTLCache(ttl, timer), None, typed)
0 commit comments