Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::TwoLevelPropertyStore Class Reference
Inheritance diagram for net_instaweb::TwoLevelPropertyStore:

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
- Public Member Functions inherited from net_instaweb::PropertyStore
bool enable_get_cancellation ()
void set_enable_get_cancellation (bool x)

Additional Inherited Members

- Public Types inherited from net_instaweb::PropertyStore
typedef Callback1< bool > BoolCallback

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 

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

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 third_party/pagespeed/system/

Implements net_instaweb::PropertyStore.

The documentation for this class was generated from the following file: