![]() |
rapila
|
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 | |
Represents one file in the cache, identified by the dirname and the key (generated/caches/<dir>/<md5(key)>.cache).
CachingStrategy::__construct | ( | ) |
Default constructor. Does not need to be overridden by most implementations.
|
static |
Returns an array of all strategy instances declared in the config.
|
static |
Creates a caching strategy with the given options.
|
static |
Returns the strategy applicable for a certain modules as determined by the config.
|
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).