‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Cache\Backend\PhpCapableBackendInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Cache\Backend\PhpCapableBackendInterface:
TYPO3\CMS\Core\Cache\Backend\BackendInterface TYPO3\CMS\Core\Cache\Backend\NullBackend TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend TYPO3\CMS\Core\Cache\Backend\FileBackend TYPO3\CMS\Core\DependencyInjection\Cache\ContainerBackend

Public Member Functions

mixed requireOnce ($entryIdentifier)
 
- ‪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 is capable of storing, retrieving and including PHP source code.

Definition at line 22 of file PhpCapableBackendInterface.php.

Member Function Documentation

◆ requireOnce()

mixed TYPO3\CMS\Core\Cache\Backend\PhpCapableBackendInterface::requireOnce (   $entryIdentifier)

Loads PHP code from the cache and require_onces it right away.

Parameters
string$entryIdentifier‪An identifier which describes the cache entry to load
Returns
‪mixed Potential return value from the include operation

Implemented in TYPO3\CMS\Core\Cache\Backend\NullBackend, TYPO3\CMS\Core\Cache\Backend\FileBackend, and TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend.