MCPcopy Create free account
hub / github.com/authlib/authlib / __init__

Method __init__

tests/flask/cache.py:12–16  ·  view source on GitHub ↗
(self, threshold=500, default_timeout=300)

Source from the content-addressed store, hash-verified

10 """A SimpleCache for testing. Copied from Werkzeug."""
11
12 def __init__(self, threshold=500, default_timeout=300):
13 self.default_timeout = default_timeout
14 self._cache = {}
15 self.clear = self._cache.clear
16 self._threshold = threshold
17
18 def _prune(self):
19 if len(self._cache) > self._threshold:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected