19 #ifndef PAGESPEED_KERNEL_CACHE_FALLBACK_CACHE_H_
20 #define PAGESPEED_KERNEL_CACHE_FALLBACK_CACHE_H_
28 #include "pagespeed/kernel/cache/cache_interface.h"
30 namespace net_instaweb {
55 virtual void MultiGet(MultiGetRequest* request);
63 return (small_object_cache_->
IsHealthy() &&
73 return FormatName(small_object_cache_->
Name(), large_object_cache_->
Name());
75 static GoogleString FormatName(StringPiece small, StringPiece large);
82 void DecodeValueMatchingKeyAndCallCallback(
83 const GoogleString& key,
const char* data,
size_t data_len,
89 bool account_for_key_size_;
Definition: fallback_cache.h:39
Abstract interface for a cache.
Definition: cache_interface.h:32
virtual GoogleString Name() const
Definition: fallback_cache.h:72
void set_account_for_key_size(bool x)
Definition: fallback_cache.h:79
virtual bool IsHealthy() const
Definition: fallback_cache.h:62
virtual void Get(const GoogleString &key, Callback *callback)
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual void Put(const GoogleString &key, const SharedString &value)
virtual void MultiGet(MultiGetRequest *request)
virtual bool IsHealthy() const =0
virtual bool IsBlocking() const =0
Definition: shared_string.h:40
Definition: cache_interface.h:42
virtual bool IsBlocking() const
Definition: fallback_cache.h:56
FallbackCache(CacheInterface *small_object_cache, CacheInterface *large_object_cache, int threshold_bytes, MessageHandler *handler)
Definition: message_handler.h:39
virtual void ShutDown()=0
virtual void ShutDown()
Definition: fallback_cache.h:67
virtual GoogleString Name() const =0