‪TYPO3CMS  ‪main
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 ()
 
bool isFrozen ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Cache\Backend\BackendInterface
 setCache (FrontendInterface $cache)
 
 set ($entryIdentifier, $data, array $tags=[], $lifetime=null)
 
mixed get ($entryIdentifier)
 
bool has ($entryIdentifier)
 
bool remove ($entryIdentifier)
 
 flush ()
 
 collectGarbage ()
 

Detailed Description

A contract for a cache backend which can be frozen.

Definition at line 21 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.

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

◆ isFrozen()

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

Tells if this backend is frozen.

Returns
‪bool

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