Property | Type | Description | |
---|---|---|---|
$entries | array | ||
$tagsAndEntries | array |
Method | Description | |
---|---|---|
collectGarbage ( ) : void | Does nothing | |
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. | |
has ( string $entryIdentifier ) : boolean | Checks if a cache entry with the specified identifier exists. | |
remove ( string $entryIdentifier ) : boolean | Removes all cache entries matching the specified identifier. | |
set ( string $entryIdentifier, string $data, array $tags = [], integer $lifetime = null ) : void | Saves data in the cache. |
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 |
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 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 |