Searched refs:lru_list_ (Results 1 – 4 of 4) sorted by relevance
103 lru_list_.clear(); in Clear()127 lru_list_.erase(it->second.lru_iterator); in LookupLocked()133 lru_list_.push_front(it->first); in LookupLocked()134 it->second.lru_iterator = lru_list_.begin(); in LookupLocked()140 lru_list_.push_front(key); in InsertLocked()141 Entry entry{env_->NowSeconds(), value, lru_list_.begin()}; in InsertLocked()144 lru_list_.erase(insert.first->second.lru_iterator); in InsertLocked()147 cache_.erase(lru_list_.back()); in InsertLocked()148 lru_list_.pop_back(); in InsertLocked()157 lru_list_.erase(it->second.lru_iterator); in DeleteLocked()[all …]
49 lru_list_.push_front(key); in Lookup()51 new_entry->lru_iterator = lru_list_.begin(); in Lookup()60 while (!lru_list_.empty() && cache_size_ > max_bytes_) { in Trim()61 RemoveBlock(block_map_.find(lru_list_.back())); in Trim()73 if (block->lru_iterator != lru_list_.begin()) { in UpdateLRU()74 lru_list_.erase(block->lru_iterator); in UpdateLRU()75 lru_list_.push_front(key); in UpdateLRU()76 block->lru_iterator = lru_list_.begin(); in UpdateLRU()262 lru_list_.clear(); in Flush()286 lru_list_.erase(entry->second->lru_iterator); in RemoveBlock()
230 std::list<Key> lru_list_ GUARDED_BY(mu_);
2094 lru_list_.erase(it->second.lru_iterator); in GetOp()2095 lru_list_.push_front(it->first); in GetOp()2096 it->second.lru_iterator = lru_list_.begin(); in GetOp()2101 if (lru_list_.size() >= capacity_) { in SetOp()2106 lru_list_.push_front(key); in SetOp()2107 Entry entry(op, lru_list_.begin()); in SetOp()2112 if (lru_list_.empty()) return; in Clear()2116 lru_list_.clear(); in Clear()2149 if (lru_list_.empty()) return false; in Delete()2150 string key = lru_list_.back(); in Delete()[all …]