Property | Type | Description | |
---|---|---|---|
$cachePrefix | string | prefix which will be added to every item-key | |
$clearedTagsStack | array | Contains the tags which were already cleared | |
$defaultLifetime | null | ||
$ignoredTagsOnClear | array | items having one of the tags in this store are not cleared when calling self::clearTags() or self::clearTag() | |
$instance | Zend_Cache_Core | Zend_Cache_Frontend | Instance of the used cache-implementation | |
$logger | Contains the Logger, this is necessary because otherwise logging doesn't work in shutdown (missing reference) | ||
$maxWriteToCacheItems | integer | How many items should stored to the cache within one process | |
$saveStack | array | Contains the items which should be written to the cache on shutdown. They are ordered respecting the priority |
Property | Type | Description | |
---|---|---|---|
$_clearTagsOnShutdown | array | Items having tags which are in this array are cleared on shutdown \Pimcore::shutdown(); This is especially for the output-cache | |
$blackHoleCache | Zend_Cache_Core | ||
$enabled | boolean | ||
$forceImmediateWrite | boolean | if set to truq items are directly written into the cache, and do not get into the queue | |
$writeLockTimestamp | integer | contains the timestamp of the writeLockTime from the current process this is to recheck when removing the write lock (if the value is different -> higher) do not remove the lock because then another process has acquired a lock |
Method | Description | |
---|---|---|
addClearTagOnShutdown ( $tag ) : void | Adds a tag to the shutdown queue, see clearTagsOnShutdown | |
addClearedTag ( string $tag ) | ||
addIgnoredTagOnClear ( $tag ) : void | ||
clearAll ( ) : void | Empty the cache | |
clearSaveStack ( ) | ||
clearTag ( string $tag ) : void | Removes entries from the cache matching the given tag | |
clearTags ( array $tags = [] ) : void | Removes entries from the cache matching the given tags | |
clearTagsOnShutdown ( ) : void | Clears all tags stored in self::$_clearTagsOnShutdown, this function is executed in \Pimcore::shutdown() | |
disable ( ) : void | Disables the complete pimcore cache | |
enable ( ) : void | ||
getBlackHoleCache ( ) : Zend_Cache_Core | Zend_Cache_Frontend | ||
getDefaultCache ( ) : Zend_Cache_Core | Zend_Cache_Frontend | ||
getDefaultConfig ( string | null $adapter = null ) : array | ||
getForceImmediateWrite ( ) : boolean | ||
getInstance ( ) : Zend_Cache_Core | Zend_Cache_Frontend | Returns a instance of the cache, if the instance isn't available it creates a new one | |
hasWriteLock ( ) : boolean | ||
init ( ) | ||
initializeCache ( $config ) : Zend_Cache_Core | Zend_Cache_Frontend | ||
load ( string $key, $doNotTestCacheValidity = false ) : mixed | Returns the content of the requested cache entry | |
maintenance ( ) | ||
remove ( $key ) | ||
removeIgnoredTagOnClear ( $tag ) : void | ||
removeWriteLock ( ) | ||
save ( $data, $key, array $tags = [], null $lifetime = null, integer $priority, boolean $force = false ) : boolean | void | ||
setForceImmediateWrite ( boolean $forceImmediateWrite ) | ||
setWriteLock ( $force = false ) | ||
setZendFrameworkCaches ( null $cache = null ) | ||
test ( string $key ) : integer | boolean | Get the last modified time for the requested cache entry | |
write ( ) : void | Write the stack to the cache |
Method | Description | |
---|---|---|
normalizeConfig ( $config ) : mixed | ||
storeToCache ( $data, $key, array $tags = [], null $lifetime = null, boolean $force = false ) : boolean | void | Write's an item to the cache // don't use the logger inside here |
public static addClearTagOnShutdown ( $tag ) : void | ||
$tag | ||
return | void |
public static addIgnoredTagOnClear ( $tag ) : void | ||
$tag | ||
return | void |
public static clearTagsOnShutdown ( ) : void | ||
return | void |
public static getBlackHoleCache ( ) : Zend_Cache_Core | Zend_Cache_Frontend | ||
return | Zend_Cache_Core | Zend_Cache_Frontend |
public static getDefaultCache ( ) : Zend_Cache_Core | Zend_Cache_Frontend | ||
return | Zend_Cache_Core | Zend_Cache_Frontend |
public static getForceImmediateWrite ( ) : boolean | ||
return | boolean |
public static getInstance ( ) : Zend_Cache_Core | Zend_Cache_Frontend | ||
return | Zend_Cache_Core | Zend_Cache_Frontend |
public static initializeCache ( $config ) : Zend_Cache_Core | Zend_Cache_Frontend | ||
$config | ||
return | Zend_Cache_Core | Zend_Cache_Frontend |
protected static normalizeConfig ( $config ) : mixed | ||
$config | ||
return | mixed |
public static removeIgnoredTagOnClear ( $tag ) : void | ||
$tag | ||
return | void |
public static setForceImmediateWrite ( boolean $forceImmediateWrite ) | ||
$forceImmediateWrite | boolean |
public static setZendFrameworkCaches ( null $cache = null ) | ||
$cache | null |
protected static array $_clearTagsOnShutdown | ||
return | array |
protected static Zend_Cache_Core $blackHoleCache | ||
return | Zend_Cache_Core |
public static string $cachePrefix | ||
return | string |
public static array $clearedTagsStack | ||
return | array |
protected static bool $forceImmediateWrite | ||
return | boolean |
public static array $ignoredTagsOnClear | ||
return | array |
public static Zend_Cache_Core|Zend_Cache_Frontend $instance | ||
return | Zend_Cache_Core | Zend_Cache_Frontend |
public static Logger,pimcore $logger | ||
return |
public static int $maxWriteToCacheItems | ||
return | integer |
public static array $saveStack | ||
return | array |
protected static int $writeLockTimestamp | ||
return | integer |