(content: T, ttl: Duration)
| 84 | |
| 85 | impl<T: Clone> CacheRecord<T> { |
| 86 | pub fn new(content: T, ttl: Duration) -> Self { |
| 87 | Self { |
| 88 | created_instant: Instant::now(), |
| 89 | content, |
| 90 | ttl, |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | pub fn get(&self) -> T { |
| 95 | self.content.clone() |
nothing calls this directly
no outgoing calls
no test coverage detected