프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_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 |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | void |
public static clearTagsOnShutdown ( ) : void | ||
리턴 | void |
public static getBlackHoleCache ( ) : Zend_Cache_Core | Zend_Cache_Frontend | ||
리턴 | Zend_Cache_Core | Zend_Cache_Frontend |
public static getDefaultCache ( ) : Zend_Cache_Core | Zend_Cache_Frontend | ||
리턴 | Zend_Cache_Core | Zend_Cache_Frontend |
public static getInstance ( ) : Zend_Cache_Core | Zend_Cache_Frontend | ||
리턴 | Zend_Cache_Core | Zend_Cache_Frontend |
public static initializeCache ( $config ) : Zend_Cache_Core | Zend_Cache_Frontend | ||
$config | ||
리턴 | Zend_Cache_Core | Zend_Cache_Frontend |
public static removeIgnoredTagOnClear ( $tag ) : void | ||
$tag | ||
리턴 | void |
public static setForceImmediateWrite ( boolean $forceImmediateWrite ) | ||
$forceImmediateWrite | boolean |
public static setZendFrameworkCaches ( null $cache = null ) | ||
$cache | null |
protected static array $_clearTagsOnShutdown | ||
리턴 | array |
protected static Zend_Cache_Core $blackHoleCache | ||
리턴 | Zend_Cache_Core |
public static string $cachePrefix | ||
리턴 | string |
public static array $clearedTagsStack | ||
리턴 | array |
protected static bool $forceImmediateWrite | ||
리턴 | boolean |
public static array $ignoredTagsOnClear | ||
리턴 | array |
public static Zend_Cache_Core|Zend_Cache_Frontend $instance | ||
리턴 | Zend_Cache_Core | Zend_Cache_Frontend |
public static Logger,pimcore $logger | ||
리턴 |
public static int $maxWriteToCacheItems | ||
리턴 | integer |
public static array $saveStack | ||
리턴 | array |
protected static int $writeLockTimestamp | ||
리턴 | integer |