pub fn insert_key_tag_read(&mut self, key_tag: KeyTag, keys: BTreeSet<Key>) {
        let element_size = Meter::measure_keys(&self.meter, &keys);
        self.key_tag_reads_cached.insert(key_tag, keys);
        self.current_cache_size += element_size;
        while self.current_cache_size > self.max_cache_size {
            match self.reads_cached.pop_front() {
                Some((k, v)) => {
                    let element_size = Meter::measure(&self.meter, &k, &v);
                    self.current_cache_size -= element_size;
                }
                None => break,
            }
        }
    }
/// Inserts a `KeyTag` value and the keys under this prefix into the key reads cache.
Inserts a `KeyTag` value and the keys under this prefix into the key reads cache.
Inserts a ` KeyTag ` value and the keys under this prefix into the key reads cache .
pub fn insert_key_tag_read(&mut self, key_tag: KeyTag, keys: BTreeSet<Key>) {
        let element_size = Meter::measure_keys(&self.meter, &keys);
        self.key_tag_reads_cached.insert(key_tag, keys);
        self.current_cache_size += element_size;
        while self.current_cache_size > self.max_cache_size {
            match self.reads_cached.pop_front() {
                Some((k, v)) => {
                    let element_size = Meter::measure(&self.meter, &k, &v);
                    self.current_cache_size -= element_size;
                }
                None => break,
            }
        }
    }
pub fn insert_key_tag_read ( & mut self , key_tag : KeyTag , keys : BTreeSet < Key > ) { let element_size = Meter :: measure_keys ( & self . meter , & keys ) ; self . key_tag_reads_cached . insert ( key_tag , keys ) ; self . current_cache_size += element_size ; while self . current_cache_size > self . max_cache_size { match self . reads_cached . pop_front ( ) { Some ( ( k , v ) ) => { let element_size = Meter :: measure ( & self . meter , & k , & v ) ; self . current_cache_size -= element_size ; } None => break , } } }
Inserts a `KeyTag` value and the keys under this prefix into the key reads cache.
Inserts a ` KeyTag ` value and the keys under this prefix into the key reads cache .
&mut self
key_tag
KeyTag
keys
BTreeSet<Key>
&mut self
key_tag
KeyTag
keys
BTreeSet<Key>