(capacity: usize)
| 34 | V: Clone, |
| 35 | { |
| 36 | pub fn new(capacity: usize) -> Self { |
| 37 | Self { |
| 38 | cache: Arc::new(Mutex::new(LruCache::with_capacity(capacity))), |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | pub fn new_with_ttl(capacity: usize, ttl: Duration) -> Self { |
| 43 | Self { |
nothing calls this directly
no outgoing calls
no test coverage detected