MCPcopy Create free account
hub / github.com/LEXUGE/dcompass / get

Method get

droute/src/cache.rs:94–96  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

92 }
93
94 pub fn get(&self) -> T {
95 self.content.clone()
96 }
97
98 pub fn validate(&self) -> bool {
99 Instant::now().saturating_duration_since(self.created_instant) <= self.ttl

Callers 4

matchesMethod · 0.80
sendMethod · 0.80
resolveMethod · 0.80
queryMethod · 0.80

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected