Page Speed Optimization Libraries  1.8.31.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::TwoLevelPropertyStore Class Reference
Inheritance diagram for net_instaweb::TwoLevelPropertyStore:
net_instaweb::PropertyStore

List of all members.

Public Member Functions

 TwoLevelPropertyStore (PropertyStore *primary_property_store, PropertyStore *secondary_propery_store, ThreadSystem *thread_system)
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)
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 both the storage system for the given key.
virtual GoogleString Name () const

Member Function Documentation

virtual void net_instaweb::TwoLevelPropertyStore::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 
) [virtual]

It issues a lookup on the primary_property_store and lookup on secondary_property_store will only be issued if properties are not available in primary_property_store and lookup is not yet cancelled.

Implements net_instaweb::PropertyStore.

virtual GoogleString net_instaweb::TwoLevelPropertyStore::Name ( ) const [virtual]

The name of this PropertyStore -- used for logging and debugging.

It is strongly recommended that you provide a static GoogleString FormatName(...) method for use in formatting the Name() return, and in testing, e.g. in net/instaweb/system/system_caches_test.cc.

Implements net_instaweb::PropertyStore.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines