Searched refs:lru_list_ (Results 1 – 7 of 7) sorted by relevance
103 lru_list_.clear(); in Clear()128 lru_list_.erase(it->second.lru_iterator); in LookupLocked()134 lru_list_.push_front(it->first); in LookupLocked()135 it->second.lru_iterator = lru_list_.begin(); in LookupLocked()141 lru_list_.push_front(key); in InsertLocked()142 Entry entry{env_->NowSeconds(), value, lru_list_.begin()}; in InsertLocked()145 lru_list_.erase(insert.first->second.lru_iterator); in InsertLocked()148 cache_.erase(lru_list_.back()); in InsertLocked()149 lru_list_.pop_back(); in InsertLocked()158 lru_list_.erase(it->second.lru_iterator); in DeleteLocked()[all …]
52 lru_list_.push_front(key); in Lookup()54 new_entry->lru_iterator = lru_list_.begin(); in Lookup()63 while (!lru_list_.empty() && cache_size_ > max_bytes_) { in Trim()64 RemoveBlock(block_map_.find(lru_list_.back())); in Trim()76 if (block->lru_iterator != lru_list_.begin()) { in UpdateLRU()77 lru_list_.erase(block->lru_iterator); in UpdateLRU()78 lru_list_.push_front(key); in UpdateLRU()79 block->lru_iterator = lru_list_.begin(); in UpdateLRU()272 lru_list_.clear(); in Flush()296 lru_list_.erase(entry->second->lru_iterator); in RemoveBlock()
232 std::list<Key> lru_list_ TF_GUARDED_BY(mu_);
107 lru_list_.clear(); in Clear()132 lru_list_.erase(it->second.lru_iterator); in LookupLocked()138 lru_list_.push_front(it->first); in LookupLocked()139 it->second.lru_iterator = lru_list_.begin(); in LookupLocked()145 lru_list_.push_front(key); in InsertLocked()146 Entry entry{timer_seconds_(), value, lru_list_.begin()}; in InsertLocked()149 lru_list_.erase(insert.first->second.lru_iterator); in InsertLocked()152 cache_.erase(lru_list_.back()); in InsertLocked()153 lru_list_.pop_back(); in InsertLocked()162 lru_list_.erase(it->second.lru_iterator); in DeleteLocked()[all …]
52 lru_list_.push_front(key); in Lookup()54 new_entry->lru_iterator = lru_list_.begin(); in Lookup()63 while (!lru_list_.empty() && cache_size_ > max_bytes_) { in Trim()64 RemoveBlock(block_map_.find(lru_list_.back())); in Trim()77 if (block->lru_iterator != lru_list_.begin()) { in UpdateLRU()78 lru_list_.erase(block->lru_iterator); in UpdateLRU()79 lru_list_.push_front(key); in UpdateLRU()80 block->lru_iterator = lru_list_.begin(); in UpdateLRU()279 lru_list_.clear(); in Flush()303 lru_list_.erase(entry->second->lru_iterator); in RemoveBlock()
248 std::list<Key> lru_list_ ABSL_GUARDED_BY(mu_);
1715 lru_list_.erase(it->second.lru_iterator); in GetOp()1716 lru_list_.push_front(it->first); in GetOp()1717 it->second.lru_iterator = lru_list_.begin(); in GetOp()1722 if (lru_list_.size() >= capacity_) { in SetOp()1727 lru_list_.push_front(key); in SetOp()1728 Entry entry(op, lru_list_.begin()); in SetOp()1733 if (lru_list_.empty()) return; in Clear()1737 lru_list_.clear(); in Clear()1770 if (lru_list_.empty()) return false; in Delete()1771 string key = lru_list_.back(); in Delete()[all …]