TYPO3  7.6
Public Member Functions | List of all members
TaggableBackendInterface Interface Reference
Inheritance diagram for TaggableBackendInterface:
BackendInterface ApcBackend FileBackend MemcachedBackend NullBackend PdoBackend RedisBackend TransientMemoryBackend Typo3DatabaseBackend WincacheBackend XcacheBackend

Public Member Functions

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

Detailed Description

A contract for a cache backend which supports tagging.

Definition at line 18 of file TaggableBackendInterface.php.

Member Function Documentation

findIdentifiersByTag (   $tag)

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

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

Implemented in RedisBackend, MemcachedBackend, FileBackend, Typo3DatabaseBackend, PdoBackend, ApcBackend, XcacheBackend, WincacheBackend, TransientMemoryBackend, and NullBackend.

flushByTag (   $tag)

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

Parameters
string$tagThe tag the entries must have
Returns
void

Implemented in RedisBackend, MemcachedBackend, FileBackend, Typo3DatabaseBackend, ApcBackend, XcacheBackend, PdoBackend, WincacheBackend, TransientMemoryBackend, and NullBackend.