TYPO3  7.6
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ClassInfoCache Class Reference

Public Member Functions

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

Private Member Functions

 initializeLevel2Cache ()
 

Private Attributes

 $level1Cache = array()
 
 $level2Cache
 

Detailed Description

Simple Cache for classInfos

Definition at line 20 of file ClassInfoCache.php.

Constructor & Destructor Documentation

__construct ( )

constructor

Definition at line 35 of file ClassInfoCache.php.

References ClassInfoCache\initializeLevel2Cache().

Member Function Documentation

get (   $id)

Gets the cache for the id

Parameters
string$id
Returns
mixed

Definition at line 57 of file ClassInfoCache.php.

has (   $id)

checks if cacheentry exists for id

Parameters
string$id
Returns
bool

Definition at line 46 of file ClassInfoCache.php.

initializeLevel2Cache ( )
private

Initialize the TYPO3 second level cache

Definition at line 80 of file ClassInfoCache.php.

Referenced by ClassInfoCache\__construct().

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 = array()
private

Definition at line 25 of file ClassInfoCache.php.

$level2Cache
private

Definition at line 30 of file ClassInfoCache.php.