TYPO3 CMS  TYPO3_7-6
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\FileBackend TYPO3\CMS\Core\Cache\Backend\NullBackend TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend TYPO3\CMS\Core\Tests\Unit\Cache\Backend\MockBackend TYPO3\CMS\Core\Cache\Backend\FileBackend

Public Member Functions

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

Definition at line 23 of file PhpCapableBackendInterface.php.

Member Function Documentation

◆ requireOnce()

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

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

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

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