Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces
delay_cache.h File Reference
#include <map>
#include "pagespeed/kernel/base/abstract_mutex.h"
#include "pagespeed/kernel/base/basictypes.h"
#include "pagespeed/kernel/base/scoped_ptr.h"
#include "pagespeed/kernel/base/shared_string.h"
#include "pagespeed/kernel/base/string.h"
#include "pagespeed/kernel/base/string_util.h"
#include "pagespeed/kernel/base/thread_system.h"
#include "pagespeed/kernel/cache/cache_interface.h"
#include "pagespeed/kernel/thread/queued_worker_pool.h"

Go to the source code of this file.

Classes

class  net_instaweb::DelayCache
 See file comment. More...
 

Namespaces

 net_instaweb
 Unit-test framework for wget fetcher.
 

Detailed Description

Contains DelayCache, which wraps a cache, but lets a test delay responses for specific cache-keys. The callbacks are awakened by an explicit ReleaseKey API.

By default, all cache lookups are transmitted immediately to the callback.

Note: MockTimeCache also supports delayed callbacks, but they are all delayed by a fixed time.