Page Speed Optimization Libraries  1.8.31.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes
net_instaweb::SystemCachePath Class Reference

#include "system_cache_path.h"

List of all members.

Public Member Functions

 SystemCachePath (const StringPiece &path, const SystemRewriteOptions *config, RewriteDriverFactory *factory, AbstractSharedMem *shm_runtime)
CacheInterface * lru_cache ()
 Per-process in-memory LRU, with any stats/thread safety wrappers, or NULL.
CacheInterface * file_cache ()
 Per-machine file cache with any stats wrappers.
FileCache * file_cache_backend ()
NamedLockManager * lock_manager ()
void RootInit ()
 See comments in SystemCaches for calling conventions on these.
void ChildInit (SlowWorker *cache_clean_worker)
void GlobalCleanup (MessageHandler *handler)
 only called in root process
void MergeConfig (const SystemRewriteOptions *config)

Static Public Attributes

static const char kFileCache []
 CacheStats prefixes.
static const char kLruCache []

Detailed Description

The SystemCachePath encapsulates a cache-sharing model where a user specifies a file-cache path per virtual-host. With each file-cache object we keep a locking mechanism and an optional per-process LRUCache.


Member Function Documentation

Access to backend for testing. Do not use this directly in production as it lacks statistics wrappers, etc.

When there are multiple configurations which specify the same cache path, we must merge the other settings: the cleaning interval, size, and inode count.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines