Lines Matching refs:LRUHandle

26   ApplyToAllCacheEntries([](LRUHandle* h) {  in ~LRUHandleTable()
34 LRUHandle* LRUHandleTable::Lookup(const Slice& key, uint32_t hash) { in Lookup()
38 LRUHandle* LRUHandleTable::Insert(LRUHandle* h) { in Insert()
39 LRUHandle** ptr = FindPointer(h->key(), h->hash); in Insert()
40 LRUHandle* old = *ptr; in Insert()
54 LRUHandle* LRUHandleTable::Remove(const Slice& key, uint32_t hash) { in Remove()
55 LRUHandle** ptr = FindPointer(key, hash); in Remove()
56 LRUHandle* result = *ptr; in Remove()
64 LRUHandle** LRUHandleTable::FindPointer(const Slice& key, uint32_t hash) { in FindPointer()
65 LRUHandle** ptr = &list_[hash & (length_ - 1)]; in FindPointer()
77 LRUHandle** new_list = new LRUHandle*[new_length]; in Resize()
81 LRUHandle* h = list_[i]; in Resize()
83 LRUHandle* next = h->next_hash; in Resize()
85 LRUHandle** ptr = &new_list[hash & (new_length - 1)]; in Resize()
119 autovector<LRUHandle*> last_reference_list; in EraseUnRefEntries()
123 LRUHandle* old = lru_.next; in EraseUnRefEntries()
145 [callback](LRUHandle* h) { callback(h->value, h->charge); }); in ApplyToAllCacheEntries()
156 void LRUCacheShard::TEST_GetLRUList(LRUHandle** lru, LRUHandle** lru_low_pri) { in TEST_GetLRUList()
164 LRUHandle* lru_handle = lru_.next; in TEST_GetLRUSize()
178 void LRUCacheShard::LRU_Remove(LRUHandle* e) { in LRU_Remove()
196 void LRUCacheShard::LRU_Insert(LRUHandle* e) { in LRU_Insert()
236 autovector<LRUHandle*>* deleted) { in EvictFromLRU()
238 LRUHandle* old = lru_.next; in EvictFromLRU()
252 autovector<LRUHandle*> last_reference_list; in SetCapacity()
273 LRUHandle* e = table_.Lookup(key, hash); in Lookup()
287 LRUHandle* e = reinterpret_cast<LRUHandle*>(h); in Ref()
306 LRUHandle* e = reinterpret_cast<LRUHandle*>(handle); in Release()
345 LRUHandle* e = reinterpret_cast<LRUHandle*>( in Insert()
346 new char[sizeof(LRUHandle) - 1 + key.size()]); in Insert()
348 autovector<LRUHandle*> last_reference_list; in Insert()
385 LRUHandle* old = table_.Insert(e); in Insert()
418 LRUHandle* e; in Erase()
503 return reinterpret_cast<const LRUHandle*>(handle)->value; in Value()
507 return reinterpret_cast<const LRUHandle*>(handle)->charge; in GetCharge()
511 return reinterpret_cast<const LRUHandle*>(handle)->hash; in GetHash()