use crate::numerics::comp::ApproxComparable;
pub const COMPTIME_CACHE_SIZE: usize = 1024;
pub trait ApproximateCache<K, V>
where
K: ApproxComparable,
V: Clone,
{
fn find(&mut self, key: &K) -> Option<V>;
fn insert(&mut self, key: K, value: V);
fn len(&self) -> usize;
fn is_empty(&self) -> bool {
self.len() == 0
}
}