Page Speed Optimization Libraries  1.3.25.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes | Protected Member Functions
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_hasher (Hasher *hasher)
 Implements HttpCache::set_hasher().
virtual void set_disable_html_caching_on_https (bool x)
 Implements HTTPCache::set_disable_html_caching_on_https().
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_remember_fetch_dropped_ttl_seconds (int64 value)
 Implements HTTPCache::set_remember_fetch_dropped_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, bool is_200_status_code, MessageHandler *handler)
 Implements HTTPCache::RememberNotCacheable().
virtual void RememberFetchFailed (const GoogleString &key, MessageHandler *handler)
 Implements HTTPCache::RememberFetchFailed().
virtual void RememberFetchDropped (const GoogleString &key, MessageHandler *handler)
 Implements HTTPCache::RememberFetchDropped().
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

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