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

Class CacheRecord

droute/src/cache.rs:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78#[derive(Clone)]
79pub struct CacheRecord<T> {
80 created_instant: Instant,
81 content: T,
82 ttl: Duration,
83}
84
85impl<T: Clone> CacheRecord<T> {
86 pub fn new(content: T, ttl: Duration) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected