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

Method set

tests/flask/cache.py:43–47  ·  view source on GitHub ↗
(self, key, value, timeout=None)

Source from the content-addressed store, hash-verified

41 return None
42
43 def set(self, key, value, timeout=None):
44 expires = self._normalize_timeout(timeout)
45 self._prune()
46 self._cache[key] = (expires, pickle.dumps(value, pickle.HIGHEST_PROTOCOL))
47 return True
48
49 def delete(self, key):
50 return self._cache.pop(key, None) is not None

Callers 9

exists_nonceFunction · 0.45
set_state_dataMethod · 0.45
exists_nonce_in_cacheFunction · 0.45
set_state_dataMethod · 0.45

Calls 2

_normalize_timeoutMethod · 0.95
_pruneMethod · 0.95

Tested by 1