Page Speed Optimization Libraries
1.6.29.3
|
Compressed cache adapter. More...
#include "compressed_cache.h"
Public Member Functions | |
CompressedCache (CacheInterface *cache, Statistics *stats) | |
Does not takes ownership of cache or stats. | |
virtual void | Get (const GoogleString &key, Callback *callback) |
virtual void | Put (const GoogleString &key, SharedString *value) |
virtual void | Delete (const GoogleString &key) |
virtual GoogleString | Name () const |
virtual CacheInterface * | Backend () |
virtual bool | IsBlocking () const |
virtual bool | IsHealthy () const |
virtual void | ShutDown () |
int64 | CorruptPayloads () const |
int64 | OriginalSize () const |
int64 | CompressedSize () const |
Static Public Member Functions | |
static void | InitStats (Statistics *stats) |
static GoogleString | FormatName (StringPiece cache) |
Compressed cache adapter.
int64 net_instaweb::CompressedCache::CompressedSize | ( | ) | const |
Total number of compressed bytes inserted since the cache was started.
int64 net_instaweb::CompressedCache::CorruptPayloads | ( | ) | const |
Total number of times we did a fetch from the underlying cache and it failed to uncompress due to corruption.
int64 net_instaweb::CompressedCache::OriginalSize | ( | ) | const |
Total number of uncompressed bytes inserted since the cache was started.