‪TYPO3CMS  11.5
TYPO3\CMS\Core\Cache\Backend\TaggableBackendInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Cache\Backend\TaggableBackendInterface:
TYPO3\CMS\Core\Cache\Backend\BackendInterface TYPO3\CMS\Core\Cache\Backend\ApcuBackend TYPO3\CMS\Core\Cache\Backend\FileBackend TYPO3\CMS\Core\Cache\Backend\MemcachedBackend TYPO3\CMS\Core\Cache\Backend\NullBackend TYPO3\CMS\Core\Cache\Backend\PdoBackend TYPO3\CMS\Core\Cache\Backend\RedisBackend TYPO3\CMS\Core\Cache\Backend\TransientMemoryBackend TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend TYPO3\CMS\Core\Cache\Backend\WincacheBackend

Public Member Functions

 flushByTag ($tag)
 
 flushByTags (array $tags)
 
array findIdentifiersByTag ($tag)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Cache\Backend\BackendInterface
 setCache (FrontendInterface $cache)
 
 set ($entryIdentifier, $data, array $tags=[], $lifetime=null)
 
mixed get ($entryIdentifier)
 
bool has ($entryIdentifier)
 
bool remove ($entryIdentifier)
 
 flush ()
 
 collectGarbage ()
 

Detailed Description

A contract for a cache backend which supports tagging.

Definition at line 21 of file TaggableBackendInterface.php.

Member Function Documentation

◆ findIdentifiersByTag()

array TYPO3\CMS\Core\Cache\Backend\TaggableBackendInterface::findIdentifiersByTag (   $tag)

Finds and returns all cache entry identifiers which are tagged by the specified tag

Parameters
string$tag‪The tag to search for
Returns
‪array An array with identifiers of all matching entries. An empty array if no entries matched

Implemented in TYPO3\CMS\Core\Cache\Backend\RedisBackend, TYPO3\CMS\Core\Cache\Backend\MemcachedBackend, TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend, TYPO3\CMS\Core\Cache\Backend\PdoBackend, TYPO3\CMS\Core\Cache\Backend\ApcuBackend, TYPO3\CMS\Core\Cache\Backend\WincacheBackend, TYPO3\CMS\Core\Cache\Backend\TransientMemoryBackend, TYPO3\CMS\Core\Cache\Backend\NullBackend, and TYPO3\CMS\Core\Cache\Backend\FileBackend.

◆ flushByTag()

◆ flushByTags()

TYPO3\CMS\Core\Cache\Backend\TaggableBackendInterface::flushByTags ( array  $tags)

Removes all cache entries of this cache which are tagged by any of the specified tags.

Parameters
string[]$tags‪List of tags

Implemented in TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend.