Page Speed Optimization Libraries
1.13.35.1
|
Abstract interface for implementing a PropertyPage. More...
#include "property_cache.h"
Public Member Functions | |
virtual PropertyValue * | GetProperty (const PropertyCache::Cohort *cohort, const StringPiece &property_name)=0 |
virtual void | UpdateValue (const PropertyCache::Cohort *cohort, const StringPiece &property_name, const StringPiece &value)=0 |
virtual void | WriteCohort (const PropertyCache::Cohort *cohort)=0 |
virtual CacheInterface::KeyState | GetCacheState (const PropertyCache::Cohort *cohort)=0 |
This function returns the cache state for a given cohort. | |
virtual void | DeleteProperty (const PropertyCache::Cohort *cohort, const StringPiece &property_name)=0 |
Deletes a property given the property name. | |
Abstract interface for implementing a PropertyPage.
|
pure virtual |
Gets a property given the property name. The property can then be mutated, prior to the PropertyPage being written back to the cache.
Implemented in net_instaweb::PropertyPage, and net_instaweb::FallbackPropertyPage.
|
pure virtual |
Updates the value of a property, tracking stability & discarding writes when the existing data is more up-to-date.
Implemented in net_instaweb::PropertyPage, and net_instaweb::FallbackPropertyPage.
|
pure virtual |
Updates a Cohort of properties into the cache. It is a programming error (dcheck-fail) to Write a PropertyPage that was not read first. It is fine to Write after a failed Read.
Implemented in net_instaweb::PropertyPage, and net_instaweb::FallbackPropertyPage.