pub trait ResizableCache {
    fn resize(&mut self, cap: usize) -> u64;
}
Expand description

Implement this trait for Cache to support resize.

Required Methods

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

Implementors