mod cache;
mod queues;
#[cfg(test)]
mod fake_clock;
use std::cmp::Ord;
use std::hash::Hash;
use std::ops::Add;
use std::time::Duration;
pub trait CacheClock: Send + Sync + 'static {
type Duration; type Instant: Clone
+ Add<Self::Duration, Output = Self::Instant>
+ Hash
+ Ord
+ Send
+ Sync
+ 'static;
fn now(&self) -> Self::Instant;
}
pub type Cache<K, C> = cache::Cache<K, C>;
pub type RetrievalResult<V> = cache::RetrievalResult<V, Duration>;