Property | Type | Description | |
---|---|---|---|
$cacheEntriesIterator | ApcIterator | ||
$identifierPrefix | string | A prefix to seperate stored data from other data possible stored in the APC |
Method | Description | |
---|---|---|
__construct ( |
||
collectGarbage ( ) : void | Does nothing, as APC does GC itself | |
current ( ) : mixed | Returns the data of the current cache entry pointed to by the cache entry iterator. | |
findIdentifiersByTag ( string $tag ) : array | Finds and returns all cache entry identifiers which are tagged by the specified tag. | |
flush ( ) : void | Removes all cache entries of this cache. | |
flushByTag ( string $tag ) : integer | Removes all cache entries of this cache which are tagged by the specified tag. | |
get ( string $entryIdentifier ) : mixed | Loads data from the cache. | |
getPrefixedIdentifier ( string $entryIdentifier ) : string | Returns the internally used, prefixed entry identifier for the given public entry identifier. | |
has ( string $entryIdentifier ) : boolean | Checks if a cache entry with the specified identifier exists. | |
key ( ) : string | Returns the identifier of the current cache entry pointed to by the cache entry iterator. | |
next ( ) : void | Move forward to the next cache entry | |
remove ( string $entryIdentifier ) : boolean | Removes all cache entries matching the specified identifier. | |
rewind ( ) : void | Rewinds the cache entry iterator to the first element | |
set ( string $entryIdentifier, string $data, array $tags = [], integer $lifetime = null ) : void | Saves data in the cache. | |
setCache ( Neos\Cache\Frontend\FrontendInterface $cache ) : void | Initializes the identifier prefix when setting the cache. | |
valid ( ) : boolean | Checks if the current position of the cache entry iterator is valid |
Method | Description | |
---|---|---|
addIdentifierToTags ( string $entryIdentifier, array $tags ) : void | Associates the identifier with the given tags | |
findTagsByIdentifier ( string $identifier ) : array | Finds all tags for the given identifier. This function uses reverse tag index to search for tags. | |
removeIdentifierFromAllTags ( string $entryIdentifier ) : void | Removes association of the identifier with the given tags |
public __construct ( |
||
$environmentConfiguration | ||
$options | array |
public collectGarbage ( ) : void | ||
return | void |
public findIdentifiersByTag ( string $tag ) : array | ||
$tag | string | The tag to search for |
return | array | An array with identifiers of all matching entries. An empty array if no entries matched |
protected findTagsByIdentifier ( string $identifier ) : array | ||
$identifier | string | Identifier to find tags by |
return | array | Array with tags |
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 getPrefixedIdentifier ( string $entryIdentifier ) : string | ||
$entryIdentifier | string | The short entry identifier, for example "NumberOfPostedArticles" |
return | string | The prefixed identifier, for example "Flow694a5c7a43a4_NumberOfPostedArticles" |
protected removeIdentifierFromAllTags ( string $entryIdentifier ) : void | ||
$entryIdentifier | string | |
return | void |
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 liftime. |
return | void |
protected ApcIterator $cacheEntriesIterator | ||
return | ApcIterator |
protected string $identifierPrefix | ||
return | string |