pub trait ResizableCache { fn resize(&mut self, cap: usize) -> u64; }
Implement this trait for Cache to support resize.
Resizes the cache. If the new capacity is smaller than the size of the current cache any entries past the new capacity are discarded.
Returns the number of discarded entries