19 #ifndef PAGESPEED_KERNEL_CACHE_CACHE_KEY_PREPENDER_H_
20 #define PAGESPEED_KERNEL_CACHE_CACHE_KEY_PREPENDER_H_
26 #include "pagespeed/kernel/cache/cache_interface.h"
28 namespace net_instaweb {
41 void MultiGet(MultiGetRequest* request)
override;
51 return FormatName(prefix_.
Value(), cache_->
Name());
54 static GoogleString FormatName(StringPiece prefix, StringPiece cache);
57 class KeyPrependerCallback;
Abstract interface for a cache.
Definition: cache_interface.h:32
CacheInterface * Backend() override
Definition: cache_key_prepender.h:44
bool IsBlocking() const override
Definition: cache_key_prepender.h:45
Definition: cache_key_prepender.h:33
StringPiece Value() const
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
void ShutDown() override
Definition: cache_key_prepender.h:49
virtual bool IsHealthy() const =0
virtual bool IsBlocking() const =0
bool IsHealthy() const override
Implementation of CacheInterface.
Definition: cache_key_prepender.h:48
void Get(const GoogleString &key, Callback *callback) override
Implementation of CacheInterface.
Definition: shared_string.h:40
void Put(const GoogleString &key, const SharedString &value) override
Definition: cache_interface.h:42
CacheKeyPrepender(StringPiece prefix, CacheInterface *cache)
Does not takes ownership of the cache.
virtual void ShutDown()=0
GoogleString Name() const override
Definition: cache_key_prepender.h:50
virtual GoogleString Name() const =0
void MultiGet(MultiGetRequest *request) override