Page Speed Optimization Libraries
 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.


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


 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.