TYPO3  7.6
Public Member Functions | List of all members
FreezableBackendInterface Interface Reference
Inheritance diagram for FreezableBackendInterface:
BackendInterface FileBackend

Public Member Functions

 freeze ()
 
 isFrozen ()
 
- Public Member Functions inherited from BackendInterface
 setCache (\TYPO3\CMS\Core\Cache\Frontend\FrontendInterface $cache)
 
 set ($entryIdentifier, $data, array $tags=array(), $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 ( )

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 FileBackend.

isFrozen ( )

Tells if this backend is frozen.

Returns
bool

Implemented in FileBackend.