Holds the value & stability-metadata for a property. More...
#include "property_cache.h"
Public Member Functions | |
StringPiece | value () const |
bool | has_value () const |
int64 | write_timestamp_ms () const |
bool | was_read () |
bool | IsStable (int stable_hit_per_thousand_threshold) const |
Friends | |
class | PropertyCache |
class | PropertyPage |
Holds the value & stability-metadata for a property.
bool net_instaweb::PropertyValue::IsStable | ( | int | stable_hit_per_thousand_threshold | ) | const |
Determines whether this property is sufficiently stable to be considered useful. E.g. if 30% of the time a property is wrong, then it probably cannot be relied upon for making optimization decisions.
bool net_instaweb::PropertyValue::was_read | ( | ) | [inline] |
Determines whether a read was completed. Thus was_read() can be true even if !has_value().
int64 net_instaweb::PropertyValue::write_timestamp_ms | ( | ) | const |
The timestamp of the last time this data was written (in milliseconds since 1970).