Property | Type | Description | |
---|---|---|---|
$cacheEntryFileExtension | string | A file extension to use for each cache entry. | |
$cacheEntryIdentifiers | array | ||
$frozen | boolean |
Method | Description | |
---|---|---|
collectGarbage ( ) : void | Does garbage collection | |
findIdentifiersByTag ( string $searchedTag ) : array | Finds and returns all cache entry identifiers which are tagged by the specified tag. | |
flush ( ) : void | Removes all cache entries of this cache and sets the frozen flag to FALSE. | |
flushByTag ( string $tag ) : integer | Removes all cache entries of this cache which are tagged by the specified tag. | |
freeze ( ) : void | Freezes this cache backend. | |
get ( string $entryIdentifier ) : mixed | Loads data from a cache file. | |
has ( string $entryIdentifier ) : boolean | Checks if a cache entry with the specified identifier exists. | |
isFrozen ( ) : boolean | Tells if this backend is frozen. | |
remove ( string $entryIdentifier ) : boolean | Removes all cache entries matching the specified identifier. | |
requireOnce ( string $entryIdentifier ) : mixed | Loads PHP code from the cache and require_onces it right away. | |
set ( string $entryIdentifier, string $data, array $tags = [], integer $lifetime = null ) : void | Saves data in a cache file. | |
setCache ( Neos\Cache\Frontend\FrontendInterface $cache ) : void | Sets a reference to the cache frontend which uses this backend and initializes the default cache directory. |
Method | Description | |
---|---|---|
findCacheFilesByIdentifier ( string $entryIdentifier ) : mixed | Tries to find the cache entry for the specified identifier. | |
internalGet ( string $entryIdentifier, boolean $acquireLock = true ) : boolean | string | Internal get method, allows to nest locks by using the $acquireLock flag | |
isCacheFileExpired ( string $cacheEntryPathAndFilename, boolean $acquireLock = true ) : boolean | Checks if the given cache entry files are still valid or if their lifetime has exceeded. |
protected findCacheFilesByIdentifier ( string $entryIdentifier ) : mixed | ||
$entryIdentifier | string | The cache entry identifier |
return | mixed | The filenames (including path) as an array if one or more entries could be found, otherwise FALSE |
public findIdentifiersByTag ( string $searchedTag ) : array | ||
$searchedTag | string | The tag to search for |
return | array | An array with identifiers of all matching entries. An empty array if no entries matched |
public flushByTag ( string $tag ) : integer | ||
$tag | string | The tag the entries must have |
return | integer | The number of entries which have been affected by this flush |
public requireOnce ( string $entryIdentifier ) : mixed | ||
$entryIdentifier | string | An identifier which describes the cache entry to load |
return | mixed | Potential return value from the include operation |
public set ( string $entryIdentifier, string $data, array $tags = [], integer $lifetime = null ) : void | ||
$entryIdentifier | string | An identifier for this specific cache entry |
$data | string | The data to be stored |
$tags | array | Tags to associate with this cache entry |
$lifetime | integer | Lifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited lifetime. |
return | void |
protected string $cacheEntryFileExtension | ||
return | string |