MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / ttl

Method ttl

src/secrets/src/cache.rs:41–44  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

39 }
40
41 fn ttl(&self) -> Duration {
42 let secs = self.ttl_secs.load(Ordering::Relaxed);
43 Duration::from_secs(secs)
44 }
45
46 fn set_ttl(&self, ttl: Duration) -> Duration {
47 let prev = self.ttl_secs.swap(ttl.as_secs(), Ordering::Relaxed);

Callers 1

readMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected