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

Additional Inherited Members

- 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 backends which store variables in volatile memory and as such support receiving any variable type to store.

Note: respect for this contract is up to each individual frontend. The contract can be respected for a small performance boost, but the result is marginal except for cases with huge serialized data sets.

Respected by the VariableFrontend which checks if the backend has this interface, in which case it allows the backend to store the value directly without serializing it to a string, and does not attempt to unserialize the string on every get() request.

Definition at line 33 of file TransientBackendInterface.php.