Lines Matching refs:Cache

48   class Deleter : public Cache::Deleter {
65 std::shared_ptr<Cache> cache_;
66 std::shared_ptr<Cache> cache2_;
76 std::shared_ptr<Cache> NewCache(size_t capacity) { in NewCache()
87 std::shared_ptr<Cache> NewCache( in NewCache()
107 int Lookup(std::shared_ptr<Cache> cache, int key) { in Lookup()
108 Cache::Handle* handle = cache->Lookup(EncodeKey(key)); in Lookup()
116 void Insert(std::shared_ptr<Cache> cache, int key, int value, in Insert()
121 void Erase(std::shared_ptr<Cache> cache, int key) { in Erase()
204 std::forward_list<Cache::Handle*> unreleased_handles; in TEST_P()
205 std::forward_list<Cache::Handle*> unreleased_handles_in_precise_cache; in TEST_P()
212 Cache::Handle* handle; in TEST_P()
213 Cache::Handle* handle_in_precise_cache; in TEST_P()
330 Cache::Handle* h1 = cache_->Lookup(EncodeKey(100)); in TEST_P()
335 Cache::Handle* h2 = cache_->Lookup(EncodeKey(100)); in TEST_P()
373 Cache::Handle* h = cache_->Lookup(EncodeKey(100)); in TEST_P()
406 Cache::Handle* h201 = cache_->Lookup(EncodeKey(200)); in TEST_P()
407 Cache::Handle* h202 = cache_->Lookup(EncodeKey(201)); in TEST_P()
408 Cache::Handle* h203 = cache_->Lookup(EncodeKey(202)); in TEST_P()
409 Cache::Handle* h204 = cache_->Lookup(EncodeKey(203)); in TEST_P()
454 class EraseDeleter : public Cache::Deleter { in TEST_P()
457 Cache* const cache = static_cast<Cache*>(value); in TEST_P()
464 std::shared_ptr<Cache> cache = NewCache(10, 0, false); in TEST_P()
475 Cache::Handle* h1 = cache_->Lookup(EncodeKey(100)); in TEST_P()
476 Cache::Handle* h2 = cache_->Lookup(EncodeKey(100)); in TEST_P()
536 std::shared_ptr<Cache> cache = NewCache(5, 0, false); in TEST_P()
537 Cache::Handle* handle; in TEST_P()
551 std::shared_ptr<Cache> cache = NewCache(5, 0, false); in TEST_P()
552 Cache::Handle* handle; in TEST_P()
571 std::shared_ptr<Cache> cache = NewCache(5, 0, false); in TEST_P()
572 std::vector<Cache::Handle*> handles(10); in TEST_P()
616 std::shared_ptr<Cache> cache = NewCache(5, 0, false); in TEST_P()
617 std::vector<Cache::Handle*> handles(10); in TEST_P()
632 Cache::Handle* handle; in TEST_P()
644 std::shared_ptr<Cache> cache2 = NewCache(5, 0, true); in TEST_P()
673 std::shared_ptr<Cache> cache = NewCache(n, 0, false); in TEST_P()
675 std::vector<Cache::Handle*> handles(n+1); in TEST_P()
744 std::shared_ptr<Cache> cache = NewCache(16 * 1024L * 1024L); in TEST_P()
759 Cache::Handle* h1 = cache_->Lookup(EncodeKey(1)); in TEST_P()
766 std::shared_ptr<Cache> (*new_clock_cache_func)(