Page Speed Optimization Libraries
1.4.26.1
|
#include "cache_interface.h"
Public Member Functions | |
bool | called () const |
KeyState | state () const |
void | Reset () |
super.value() is used to get/set the value. | |
virtual void | Done (CacheInterface::KeyState state) |
Helper class for use with implementations for which IsBlocking is true. It simply saves the state, value, and whether Done() has been called.
virtual void net_instaweb::CacheInterface::SynchronousCallback::Done | ( | CacheInterface::KeyState | state | ) | [inline, virtual] |
This method is called once the cache implementation has found a match that was accepted by ValidateCandidate (in which case state == kAvailable) or it has failed to do so (state == kNotFound).
Implementations are free to invoke cache operations, as all cache locks are guaranteed to be released.
Implements net_instaweb::CacheInterface::Callback.
Reimplemented in net_instaweb::CacheTestBase::Callback.