TYPO3 CMS  TYPO3_6-2
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 t3lib_cache_backend_NullBackend TYPO3\CMS\Core\Tests\Unit\Cache\Backend\MockBackend

Public Member Functions

 set ($entryIdentifier, $data, array $tags=array(), $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=array())
 
 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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! A caching backend which forgets everything immediately

This file is a backport from FLOW3

Author
Robert Lemke rober.nosp@m.t@ty.nosp@m.po3.o.nosp@m.rg
Karsten Dambekalns karst.nosp@m.en@t.nosp@m.ypo3..nosp@m.org

Definition at line 25 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 122 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 91 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 101 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 112 of file NullBackend.php.

◆ get()

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

Returns False

Parameters
string$entryIdentifierignored
Returns
boolean FALSE

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

Definition at line 58 of file NullBackend.php.

◆ has()

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

Returns False

Parameters
string$entryIdentifierignored
Returns
boolean FALSE

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

Definition at line 69 of file NullBackend.php.

◆ remove()

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

Does nothing

Parameters
string$entryIdentifierignored
Returns
boolean 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 133 of file NullBackend.php.

◆ set()

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

Acts as if it would save data

Parameters
string$entryIdentifierignored
string$dataignored
array$tagsignored
integer$lifetimeignored
Returns
void

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

Definition at line 37 of file NullBackend.php.

◆ setCompression()

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

Acts as if it would enable data compression

Parameters
boolean$compressionignored
Returns
void

Definition at line 47 of file NullBackend.php.