net_instaweb::WriteThroughHTTPCache Class Reference

Composes two cache interfaces to form a two level http cache. More...

#include "write_through_http_cache.h"

Inheritance diagram for net_instaweb::WriteThroughHTTPCache:
net_instaweb::HTTPCache

List of all members.

Public Member Functions

 WriteThroughHTTPCache (CacheInterface *cache1, CacheInterface *cache2, Timer *timer, Hasher *hasher, Statistics *statistics)
 Takes ownership of both caches passed in.
virtual void SetIgnoreFailurePuts ()
 Implements HTTPCache::SetIgnoreFailurePuts().
virtual void Find (const GoogleString &key, MessageHandler *handler, Callback *callback)
 Implements HTTPCache::Find().
virtual void Delete (const GoogleString &key)
 Implements HTTPCache::Delete().
virtual void set_force_caching (bool force)
 Implements HTTPCache::set_force_caching().
virtual void set_remember_not_cacheable_ttl_seconds (int64 value)
 Implements HTTPCache::set_remember_not_cacheable_ttl_seconds().
virtual void set_remember_fetch_failed_ttl_seconds (int64 value)
 Implements HTTPCache::set_remember_fetch_failed_ttl_seconds().
virtual void set_max_cacheable_response_content_length (int64 value)
 Implements HTTPCache::set_max_cacheable_response_content_length().
virtual void RememberNotCacheable (const GoogleString &key, MessageHandler *handler)
 Implements HTTPCache::RememberNotCacheable().
virtual void RememberFetchFailed (const GoogleString &key, MessageHandler *handler)
 Implements HTTPCache::RememberFetchFailed().
void set_cache1_limit (size_t limit)
virtual const char * Name () const

Static Public Attributes

static const size_t kUnlimited

Protected Member Functions

virtual void PutInternal (const GoogleString &key, int64 start_us, HTTPValue *value)
 Implements HTTPCache::PutInternal().

Detailed Description

Composes two cache interfaces to form a two level http cache.


Member Function Documentation

void net_instaweb::WriteThroughHTTPCache::set_cache1_limit ( size_t  limit  )  [inline]

By default, all data goes into both cache1 and cache2. But if you only want to put small items in cache1, you can set the size limit. Note that both the key and value will count torward the size.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:33:56 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3