TYPO3  7.6
Public Member Functions | List of all members
NullBackend Class Reference
Inheritance diagram for NullBackend:
AbstractBackend PhpCapableBackendInterface TaggableBackendInterface BackendInterface BackendInterface BackendInterface

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 AbstractBackend
 __construct ($context, array $options=array())
 
 setCache (\TYPO3\CMS\Core\Cache\Frontend\FrontendInterface $cache)
 
 setDefaultLifetime ($defaultLifetime)
 

Additional Inherited Members

- Public Attributes inherited from AbstractBackend
const DATETIME_EXPIRYTIME_UNLIMITED = '9999-12-31T23:59:59+0000'
 
const UNLIMITED_LIFETIME = 0
 
- Protected Member Functions inherited from AbstractBackend
 calculateExpiryTime ($lifetime=null)
 
- Protected Attributes inherited from 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 ( )

Does nothing

Returns
void

Implements BackendInterface.

Definition at line 124 of file NullBackend.php.

findIdentifiersByTag (   $tag)

Returns an empty array

Parameters
string$tagignored
Returns
array An empty array

Implements TaggableBackendInterface.

Definition at line 92 of file NullBackend.php.

flush ( )

Does nothing

Returns
void

Implements BackendInterface.

Definition at line 103 of file NullBackend.php.

flushByTag (   $tag)

Does nothing

Parameters
string$tagignored
Returns
void

Implements TaggableBackendInterface.

Definition at line 114 of file NullBackend.php.

get (   $entryIdentifier)

Returns False

Parameters
string$entryIdentifierignored
Returns
bool FALSE

Implements BackendInterface.

Definition at line 56 of file NullBackend.php.

has (   $entryIdentifier)

Returns False

Parameters
string$entryIdentifierignored
Returns
bool FALSE

Implements BackendInterface.

Definition at line 68 of file NullBackend.php.

remove (   $entryIdentifier)

Does nothing

Parameters
string$entryIdentifierignored
Returns
bool FALSE

Implements BackendInterface.

Definition at line 80 of file NullBackend.php.

requireOnce (   $identifier)

Does nothing

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

Implements PhpCapableBackendInterface.

Definition at line 135 of file NullBackend.php.

set (   $entryIdentifier,
  $data,
array  $tags = array(),
  $lifetime = null 
)

Acts as if it would save data

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

Implements BackendInterface.

Definition at line 35 of file NullBackend.php.

setCompression (   $compression)

Acts as if it would enable data compression

Parameters
bool$compressionignored
Returns
void

Definition at line 45 of file NullBackend.php.