‪TYPO3CMS  10.4
TYPO3\CMS\Core\Cache\Frontend\NullFrontend Class Reference
Inheritance diagram for TYPO3\CMS\Core\Cache\Frontend\NullFrontend:
TYPO3\CMS\Core\Cache\Frontend\PhpFrontend TYPO3\CMS\Core\Cache\Frontend\AbstractFrontend TYPO3\CMS\Core\Cache\Frontend\FrontendInterface

Public Member Functions

 __construct (string $identifier)
 
 set ($entryIdentifier, $data, array $tags=[], $lifetime=null)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Cache\Frontend\PhpFrontend
 __construct ($identifier, PhpCapableBackendInterface $backend)
 
string get ($entryIdentifier)
 
mixed requireOnce ($entryIdentifier)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Cache\Frontend\AbstractFrontend
 __construct ($identifier, BackendInterface $backend)
 
string getIdentifier ()
 
BackendInterface getBackend ()
 
bool has ($entryIdentifier)
 
bool remove ($entryIdentifier)
 
 flush ()
 
 flushByTags (array $tags)
 
 flushByTag ($tag)
 
 collectGarbage ()
 
bool isValidEntryIdentifier ($identifier)
 
bool isValidTag ($tag)
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
const TAG_CLASS = '%CLASS%'
 
const TAG_PACKAGE = '%PACKAGE%'
 
const PATTERN_ENTRYIDENTIFIER = '/^[a-zA-Z0-9_%\\-&]{1,250}$/'
 
const PATTERN_TAG = '/^[a-zA-Z0-9_%\\-&]{1,250}$/'
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Cache\Frontend\AbstractFrontend
string $identifier
 
AbstractBackend TaggableBackendInterface $backend
 

Detailed Description

This class only acts as shortcut to construct a cache frontend with a null backend. It extends PhpFrontend to be sure it can also be used for all types of caches (also the one requiring a PhpFrontend like "core"). TODO: Instead a factory class should be introduced that replaces this class and \TYPO3\CMS\Core\Core\Bootstrap::createCache

Definition at line 28 of file NullFrontend.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Cache\Frontend\NullFrontend::__construct ( string  $identifier)

Member Function Documentation

◆ set()

TYPO3\CMS\Core\Cache\Frontend\NullFrontend::set (   $entryIdentifier,
  $sourceCode,
array  $tags = [],
  $lifetime = null 
)

Saves the PHP source code in the cache.

Parameters
string$entryIdentifier‪An identifier used for this cache entry, for example the class name
string$sourceCode‪PHP source code
array$tags‪Tags to associate with this cache entry
int$lifetime‪Lifetime of this cache entry in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited lifetime.
Exceptions

Reimplemented from TYPO3\CMS\Core\Cache\Frontend\PhpFrontend.

Definition at line 41 of file NullFrontend.php.