TYPO3 CMS  TYPO3_7-6
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 TYPO3\CMS\Core\Tests\Unit\Cache\Backend\MockBackend

Public Member Functions

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

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
 calculateExpiryTime ($lifetime=null)
 
- Protected Attributes inherited from TYPO3\CMS\Core\Cache\Backend\AbstractBackend
 $cache
 
 $cacheIdentifier
 
 $context
 
 $defaultLifetime = 3600
 

Detailed Description

A caching backend which forgets everything immediately

This file is a backport from FLOW3

Definition at line 23 of file NullBackend.php.

Member Function Documentation

◆ collectGarbage()

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

Does nothing

Returns
void

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

Definition at line 124 of file NullBackend.php.

◆ findIdentifiersByTag()

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

Returns an empty array

Parameters
string$tagignored
Returns
array An empty array

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

Definition at line 92 of file NullBackend.php.

◆ flush()

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

Does nothing

Returns
void

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

Definition at line 103 of file NullBackend.php.

◆ flushByTag()

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

Does nothing

Parameters
string$tagignored
Returns
void

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

Definition at line 114 of file NullBackend.php.

◆ get()

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

Returns False

Parameters
string$entryIdentifierignored
Returns
bool FALSE

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

Definition at line 56 of file NullBackend.php.

◆ has()

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

Returns False

Parameters
string$entryIdentifierignored
Returns
bool FALSE

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

Definition at line 68 of file NullBackend.php.

◆ remove()

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

Does nothing

Parameters
string$entryIdentifierignored
Returns
bool FALSE

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

Definition at line 80 of file NullBackend.php.

◆ requireOnce()

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

Does nothing

Parameters
string$identifierAn identifier which describes the cache entry to load
Returns
void

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

Definition at line 135 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$entryIdentifierignored
string$dataignored
array$tagsignored
int$lifetimeignored
Returns
void

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

Definition at line 35 of file NullBackend.php.

◆ setCompression()

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

Acts as if it would enable data compression

Parameters
bool$compressionignored
Returns
void

Definition at line 45 of file NullBackend.php.