TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Object\Container\ClassInfoCache Class Reference

Public Member Functions

 __construct ()
 
 has ($id)
 
 get ($id)
 
 set ($id, $value)
 

Private Member Functions

 initializeLevel2Cache ()
 

Private Attributes

 $level1Cache = []
 
 $level2Cache
 

Detailed Description

Simple Cache for classInfos

Definition at line 20 of file ClassInfoCache.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Object\Container\ClassInfoCache::__construct ( )

Member Function Documentation

◆ get()

TYPO3\CMS\Extbase\Object\Container\ClassInfoCache::get (   $id)

Gets the cache for the id

Parameters
string$id
Returns
mixed

Definition at line 57 of file ClassInfoCache.php.

◆ has()

TYPO3\CMS\Extbase\Object\Container\ClassInfoCache::has (   $id)

checks if cacheentry exists for id

Parameters
string$id
Returns
bool

Definition at line 46 of file ClassInfoCache.php.

◆ initializeLevel2Cache()

TYPO3\CMS\Extbase\Object\Container\ClassInfoCache::initializeLevel2Cache ( )
private

Initialize the TYPO3 second level cache

Definition at line 80 of file ClassInfoCache.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Extbase\Object\Container\ClassInfoCache\__construct().

◆ set()

TYPO3\CMS\Extbase\Object\Container\ClassInfoCache::set (   $id,
  $value 
)

sets the cache for the id

Parameters
string$id
mixed$value

Definition at line 71 of file ClassInfoCache.php.

Member Data Documentation

◆ $level1Cache

TYPO3\CMS\Extbase\Object\Container\ClassInfoCache::$level1Cache = []
private

Definition at line 25 of file ClassInfoCache.php.

◆ $level2Cache

TYPO3\CMS\Extbase\Object\Container\ClassInfoCache::$level2Cache
private

Definition at line 30 of file ClassInfoCache.php.