Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/authlib/authlib
/ has
Method
has
tests/flask/cache.py:52–57 ·
view source on GitHub ↗
(self, key)
Source
from the content-addressed store, hash-verified
50
return
self._cache.pop(key, None) is not None
51
52
def
has(self, key):
53
try
:
54
expires, value = self._cache[key]
55
return
expires == 0 or expires > time.time()
56
except
KeyError:
57
return
False
Callers
1
exists_nonce
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected