MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / new

Method new

crates/openshell-supervisor-network/src/token_grant.rs:97–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96impl TokenCache {
97 fn new() -> Self {
98 Self {
99 tokens: Arc::new(RwLock::new(HashMap::new())),
100 }
101 }
102
103 /// Get a cached token if it exists and is not expired.
104 fn get(&self, provider_name: &str) -> Option<String> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected