TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Cache\Backend\FreezableBackendInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Cache\Backend\FreezableBackendInterface:
TYPO3\CMS\Core\Cache\Backend\BackendInterface TYPO3\CMS\Core\Cache\Backend\FileBackend

Public Member Functions

 freeze ()
 
 isFrozen ()
 
- Public Member Functions inherited from TYPO3\CMS\Core\Cache\Backend\BackendInterface
 setCache (\TYPO3\CMS\Core\Cache\Frontend\FrontendInterface $cache)
 
 set ($entryIdentifier, $data, array $tags=[], $lifetime=null)
 
 get ($entryIdentifier)
 
 has ($entryIdentifier)
 
 remove ($entryIdentifier)
 
 flush ()
 
 collectGarbage ()
 

Detailed Description

A contract for a cache backend which can be frozen.

Definition at line 18 of file FreezableBackendInterface.php.

Member Function Documentation

◆ freeze()

TYPO3\CMS\Core\Cache\Backend\FreezableBackendInterface::freeze ( )

Freezes this cache backend.

All data in a frozen backend remains unchanged and methods which try to add or modify data result in an exception thrown. Possible expiry times of individual cache entries are ignored.

On the positive side, a frozen cache backend is much faster on read access. A frozen backend can only be thawn by calling the flush() method.

Returns
void

Implemented in TYPO3\CMS\Core\Cache\Backend\FileBackend.

◆ isFrozen()

TYPO3\CMS\Core\Cache\Backend\FreezableBackendInterface::isFrozen ( )

Tells if this backend is frozen.

Returns
bool

Implemented in TYPO3\CMS\Core\Cache\Backend\FileBackend.