MCPcopy
hub / github.com/streamlit/streamlit / set

Method set

lib/streamlit/auth_util.py:64–65  ·  view source on GitHub ↗
(self, key: str, value: Any, expires_in: int | None = None)

Source from the content-addressed store, hash-verified

62 # for set method, we are follow the same signature used in Authlib
63 # the expires_in is not used in our case
64 def set(self, key: str, value: Any, expires_in: int | None = None) -> None: # noqa: ARG002
65 self.cache[key] = value
66
67 def get_dict(self) -> dict[str, Any]:
68 return self.cache

Calls

no outgoing calls

Tested by 15

test_auth_cacheMethod · 0.76
test_auth_cache_get_dictFunction · 0.76
hotkeysMockFunction · 0.36
tearDownMethod · 0.36
threadMethod · 0.36
test_threads_withMethod · 0.36
task2Method · 0.36
task1Method · 0.36
test_context_dg_stackMethod · 0.36