pub fn new(max_cache_size: usize, meter: M) -> TrackingCopyCache<M> {
        TrackingCopyCache {
            max_cache_size,
            current_cache_size: 0,
            reads_cached: LinkedHashMap::new(),
            muts_cached: HashMap::new(),
            key_tag_reads_cached: LinkedHashMap::new(),
            key_tag_muts_cached: HashMap::new(),
            meter,
        }
    }
/// Creates instance of `TrackingCopyCache` with specified `max_cache_size`,
/// above which least-recently-used elements of the cache are invalidated.
/// Measurements of elements' "size" is done with the usage of `Meter`
/// instance.
Creates instance of `TrackingCopyCache` with specified `max_cache_size`,
above which least-recently-used elements of the cache are invalidated.
Measurements of elements' "size" is done with the usage of `Meter`
instance.
Creates instance of ` TrackingCopyCache ` with specified ` max_cache_size ` above which least - recently - used elements of the cache are invalidated . Measurements of elements ' " size " is done with the usage of ` Meter ` instance .
pub fn new(max_cache_size: usize, meter: M) -> TrackingCopyCache<M> {
        TrackingCopyCache {
            max_cache_size,
            current_cache_size: 0,
            reads_cached: LinkedHashMap::new(),
            muts_cached: HashMap::new(),
            key_tag_reads_cached: LinkedHashMap::new(),
            key_tag_muts_cached: HashMap::new(),
            meter,
        }
    }
pub fn new ( max_cache_size : usize , meter : M ) -> TrackingCopyCache < M > { TrackingCopyCache { max_cache_size , current_cache_size : 0 , reads_cached : LinkedHashMap :: new ( ) , muts_cached : HashMap :: new ( ) , key_tag_reads_cached : LinkedHashMap :: new ( ) , key_tag_muts_cached : HashMap :: new ( ) , meter , } }
Creates instance of `TrackingCopyCache` with specified `max_cache_size`,
above which least-recently-used elements of the cache are invalidated.
Creates instance of ` TrackingCopyCache ` with specified ` max_cache_size ` above which least - recently - used elements of the cache are invalidated .
max_cache_size
usize
meter
M
max_cache_size
usize
meter
M