rapila
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CachingStrategy Class Reference
Inheritance diagram for CachingStrategy:
CachingStrategyFile CachingStrategyNone

Public Member Functions

 __construct ()
 
 init ($aOptions=array())
 
 setOption ($sKey, $mValue)
 
 encodedKey (Cache $oCache)
 
 exists (Cache $oCache)
 
 read (Cache $oCache)
 
 readData (Cache $oCache)
 
 pass (Cache $oCache)
 
 write (Cache $oCache, $sEntry, $bAppend=false)
 
 writeData (Cache $oCache, $mEntry)
 
 date (Cache $oCache)
 
 size (Cache $oCache)
 
 cacheIsOffForWriting ()
 
 cacheIsOff ()
 
 expiresTimestamp ($oCache)
 
 supportsNotModified ()
 
 clearCaches ()
 
 __clone ()
 

Static Public Member Functions

static create ($aOptions=array())
 
static forModule ($sModule)
 
static fromConfig ($sType)
 
static configuredStrategies ()
 

Protected Member Functions

 replaceOption (Cache $oCache, $sOption)
 

Protected Attributes

 $respect_cache_control_headers = true
 
 $send_not_modified_response = true
 
 $expires = null
 
 $nocache_param = 'nocache'
 
 $key_encode = null
 

Detailed Description

Represents one file in the cache, identified by the dirname and the key (generated/caches/<dir>/<md5(key)>.cache).

Constructor & Destructor Documentation

CachingStrategy::__construct ( )

Default constructor. Does not need to be overridden by most implementations.

Member Function Documentation

static CachingStrategy::configuredStrategies ( )
static

Returns an array of all strategy instances declared in the config.

static CachingStrategy::create (   $aOptions = array())
static

Creates a caching strategy with the given options.

static CachingStrategy::forModule (   $sModule)
static

Returns the strategy applicable for a certain modules as determined by the config.

static CachingStrategy::fromConfig (   $sType)
static

Returns a named strategy as declared in the config.

CachingStrategy::init (   $aOptions = array())

Called when all options have been set.

CachingStrategy::setOption (   $sKey,
  $mValue 
)

Sets an option (if applicable).


The documentation for this class was generated from the following file: