25 #ifndef PAGESPEED_OPT_HTTP_CACHE_PROPERTY_STORE_H_
26 #define PAGESPEED_OPT_HTTP_CACHE_PROPERTY_STORE_H_
38 namespace net_instaweb {
40 class PropertyCacheValues;
66 const PropertyCache::CohortVector& cohort_list,
76 const PropertyCacheValues* values,
91 const StringPiece& options_signature_hash,
92 const StringPiece& cache_key_suffix,
100 static GoogleString FormatName3(StringPiece cohort_name1,
101 StringPiece cohort_cache1,
102 StringPiece cohort_name2,
103 StringPiece cohort_cache2,
104 StringPiece cohort_name3,
105 StringPiece cohort_cache3);
109 typedef std::map<GoogleString, CacheInterface*> CohortCacheMap;
110 CohortCacheMap cohort_cache_map_;
Abstract interface for a cache.
Definition: cache_interface.h:32
static const char kPagePropertyCacheKeyPrefix[]
Property cache key prefixes.
Definition: cache_property_store.h:48
Definition: property_cache.h:186
Definition: property_store.h:41
void AddCohortWithCache(const GoogleString &cohort, CacheInterface *cache)
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
virtual GoogleString Name() const
Definition: abstract_property_store_get_callback.h:31
const CacheInterface * cache_backend()
Returns default cache backend associated with CachePropertyStore.
Definition: cache_property_store.h:96
Definition: property_cache.h:323
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
void AddCohort(const GoogleString &cohort)
Establishes a Cohort backed by the CacheInteface passed to the constructor.
GoogleString CacheKey(const StringPiece &url, const StringPiece &options_signature_hash, const StringPiece &cache_key_suffix, const PropertyCache::Cohort *cohort) const
virtual void Put(const GoogleString &url, const GoogleString &options_signature_hash, const GoogleString &cache_key_suffix, const PropertyCache::Cohort *cohort, const PropertyCacheValues *values, BoolCallback *done)
Write to cache.
virtual void Get(const GoogleString &url, const GoogleString &options_signature_hash, const GoogleString &cache_key_suffix, const PropertyCache::CohortVector &cohort_list, PropertyPage *page, BoolCallback *done, AbstractPropertyStoreGetCallback **callback)
Definition: cache_property_store.h:45
Definition: thread_system.h:40
CachePropertyStore(const GoogleString &cache_key_prefix, CacheInterface *cache, Timer *timer, Statistics *stats, ThreadSystem *thread_system)
Timer interface, made virtual so it can be mocked for tests.
Definition: timer.h:27
Definition: callback.h:44