| 77 | |
| 78 | #[derive(Clone)] |
| 79 | pub struct CacheRecord<T> { |
| 80 | created_instant: Instant, |
| 81 | content: T, |
| 82 | ttl: Duration, |
| 83 | } |
| 84 | |
| 85 | impl<T: Clone> CacheRecord<T> { |
| 86 | pub fn new(content: T, ttl: Duration) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected