29 #ifndef PAGESPEED_KERNEL_CACHE_DELAY_CACHE_H_
30 #define PAGESPEED_KERNEL_CACHE_DELAY_CACHE_H_
41 #include "pagespeed/kernel/cache/cache_interface.h"
44 namespace net_instaweb {
57 virtual void MultiGet(MultiGetRequest* request);
83 friend class DelayCallback;
85 void LookupComplete(DelayCallback* callback);
87 typedef std::map<GoogleString, DelayCallback*> DelayMap;
91 StringSet delay_requests_;
Abstract interface for a cache.
Definition: cache_interface.h:32
void ReleaseKeyInSequence(const GoogleString &key, QueuedWorkerPool::Sequence *sequence)
See file comment.
Definition: delay_cache.h:47
virtual void MultiGet(MultiGetRequest *request)
virtual void Get(const GoogleString &key, Callback *callback)
Reimplementations of CacheInterface methods.
void DelayKey(const GoogleString &key)
Definition: scoped_ptr.h:30
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual bool IsHealthy() const =0
DelayCache(CacheInterface *cache, ThreadSystem *thread_system)
Note: takes ownership of nothing.
Definition: queued_worker_pool.h:65
Definition: shared_string.h:40
virtual bool IsBlocking() const
Definition: delay_cache.h:77
Definition: cache_interface.h:42
virtual GoogleString Name() const
Definition: delay_cache.h:75
Definition: thread_system.h:40
virtual bool IsHealthy() const
Definition: delay_cache.h:78
virtual void ShutDown()=0
virtual GoogleString Name() const =0
virtual void Put(const GoogleString &key, const SharedString &value)
virtual void ShutDown()
Definition: delay_cache.h:79
void ReleaseKey(const GoogleString &key)
Definition: delay_cache.h:66