‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Cache\Backend\NullBackend Class Reference
Inheritance diagram for TYPO3\CMS\Core\Cache\Backend\NullBackend:
TYPO3\CMS\Core\Cache\Backend\AbstractBackend TYPO3\CMS\Core\Cache\Backend\PhpCapableBackendInterface TYPO3\CMS\Core\Cache\Backend\TaggableBackendInterface TYPO3\CMS\Core\Cache\Backend\BackendInterface TYPO3\CMS\Core\Cache\Backend\BackendInterface TYPO3\CMS\Core\Cache\Backend\BackendInterface

Public Member Functions

 set ($entryIdentifier, $data, array $tags=[], $lifetime=null)
 
 setCompression ($compression)
 
bool get ($entryIdentifier)
 
bool has ($entryIdentifier)
 
bool remove ($entryIdentifier)
 
array findIdentifiersByTag ($tag)
 
 flush ()
 
 flushByTag ($tag)
 
 collectGarbage ()
 
bool requireOnce ($identifier)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Cache\Backend\AbstractBackend
 __construct ($context, array $options=[])
 
 setCache (FrontendInterface $cache)
 
 setDefaultLifetime ($defaultLifetime)
 
 flushByTags (array $tags)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Cache\Backend\TaggableBackendInterface
 flushByTags (array $tags)
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Core\Cache\Backend\AbstractBackend
const DATETIME_EXPIRYTIME_UNLIMITED = '9999-12-31T23:59:59+0000'
 
const UNLIMITED_LIFETIME = 0
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Cache\Backend\AbstractBackend
DateTime calculateExpiryTime ($lifetime=null)
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Cache\Backend\AbstractBackend
FrontendInterface $cache
 
string $cacheIdentifier
 
string $context
 
int $defaultLifetime = 3600
 

Detailed Description

A caching backend which forgets everything immediately

Definition at line 21 of file NullBackend.php.

Member Function Documentation

◆ collectGarbage()

TYPO3\CMS\Core\Cache\Backend\NullBackend::collectGarbage ( )

Does nothing

Implements TYPO3\CMS\Core\Cache\Backend\BackendInterface.

Definition at line 99 of file NullBackend.php.

◆ findIdentifiersByTag()

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

Returns an empty array

Parameters
string$tag‪ignored
Returns
‪array An empty array

Implements TYPO3\CMS\Core\Cache\Backend\TaggableBackendInterface.

Definition at line 79 of file NullBackend.php.

◆ flush()

TYPO3\CMS\Core\Cache\Backend\NullBackend::flush ( )

Does nothing

Implements TYPO3\CMS\Core\Cache\Backend\BackendInterface.

Definition at line 87 of file NullBackend.php.

◆ flushByTag()

TYPO3\CMS\Core\Cache\Backend\NullBackend::flushByTag (   $tag)

Does nothing

Parameters
string$tag‪ignored

Implements TYPO3\CMS\Core\Cache\Backend\TaggableBackendInterface.

Definition at line 94 of file NullBackend.php.

◆ get()

bool TYPO3\CMS\Core\Cache\Backend\NullBackend::get (   $entryIdentifier)

Returns False

Parameters
string$entryIdentifier‪ignored
Returns
‪bool FALSE

Implements TYPO3\CMS\Core\Cache\Backend\BackendInterface.

Definition at line 46 of file NullBackend.php.

◆ has()

bool TYPO3\CMS\Core\Cache\Backend\NullBackend::has (   $entryIdentifier)

Returns False

Parameters
string$entryIdentifier‪ignored
Returns
‪bool FALSE

Implements TYPO3\CMS\Core\Cache\Backend\BackendInterface.

Definition at line 57 of file NullBackend.php.

◆ remove()

bool TYPO3\CMS\Core\Cache\Backend\NullBackend::remove (   $entryIdentifier)

Does nothing

Parameters
string$entryIdentifier‪ignored
Returns
‪bool FALSE

Implements TYPO3\CMS\Core\Cache\Backend\BackendInterface.

Definition at line 68 of file NullBackend.php.

◆ requireOnce()

bool TYPO3\CMS\Core\Cache\Backend\NullBackend::requireOnce (   $identifier)

Does nothing

Parameters
string$identifier‪An identifier which describes the cache entry to load
Returns
‪bool

Implements TYPO3\CMS\Core\Cache\Backend\PhpCapableBackendInterface.

Definition at line 107 of file NullBackend.php.

◆ set()

TYPO3\CMS\Core\Cache\Backend\NullBackend::set (   $entryIdentifier,
  $data,
array  $tags = [],
  $lifetime = null 
)

Acts as if it would save data

Parameters
string$entryIdentifier‪ignored
string$data‪ignored
array$tags‪ignored
int$lifetime‪ignored

Implements TYPO3\CMS\Core\Cache\Backend\BackendInterface.

Definition at line 31 of file NullBackend.php.

◆ setCompression()

TYPO3\CMS\Core\Cache\Backend\NullBackend::setCompression (   $compression)

Acts as if it would enable data compression

Parameters
bool$compression‪ignored

Definition at line 38 of file NullBackend.php.