MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / put

Method put

atomic-cli/src/commands/intent/key_cache.rs:153–155  ·  view source on GitHub ↗

Store a resolution and persist it. Write failures are logged and swallowed — the cache is best-effort and never fatal.

(&mut self, server_url: &str, name: &str, public_key: &str, status: &str)

Source from the content-addressed store, hash-verified

151 /// Write failures are logged and swallowed — the cache is
152 /// best-effort and never fatal.
153 pub fn put(&mut self, server_url: &str, name: &str, public_key: &str, status: &str) {
154 self.put_with_ttl(server_url, name, public_key, status, DEFAULT_CACHE_TTL);
155 }
156
157 /// Store a resolution with an explicit TTL (tests use negative TTLs).
158 pub fn put_with_ttl(

Callers 5

put_then_get_round_tripsFunction · 0.45
unknown_name_is_a_missFunction · 0.45
resolve_remoteMethod · 0.45

Calls 1

put_with_ttlMethod · 0.80