19 #ifndef PAGESPEED_KERNEL_CACHE_IN_MEMORY_CACHE_H_
20 #define PAGESPEED_KERNEL_CACHE_IN_MEMORY_CACHE_H_
22 #include <unordered_map>
30 namespace net_instaweb {
51 bool IsHealthy()
const override {
return !is_shut_down_; }
52 void ShutDown()
override { is_shut_down_ =
true; }
55 std::unordered_map<GoogleString, SharedString> cache_;
Abstract interface for a cache.
Definition: cache_interface.h:32
void ShutDown() override
Definition: in_memory_cache.h:52
Definition: in_memory_cache.h:40
bool IsHealthy() const override
Definition: in_memory_cache.h:51
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
GoogleString Name() const override
Definition: in_memory_cache.h:49
void Put(const GoogleString &key, const SharedString &new_value) override
Definition: shared_string.h:40
Definition: cache_interface.h:42
void Get(const GoogleString &key, Callback *callback) override
CacheInterface implementation.
bool IsBlocking() const override
Definition: in_memory_cache.h:50