TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Object\Container\ClassInfoCache Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Object\Container\ClassInfoCache:
Tx_Extbase_Object_Container_ClassInfoCache

Public Member Functions

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

Private Member Functions

 initializeLevel2Cache ()
 

Private Attributes

 $level1Cache = array()
 
 $level2Cache
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Simple Cache for classInfos

Author
Daniel Pötzinger

Definition at line 21 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 56 of file ClassInfoCache.php.

◆ has()

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

checks if cacheentry exists for id

Parameters
string$id
Returns
boolean

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 77 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 69 of file ClassInfoCache.php.

Member Data Documentation

◆ $level1Cache

TYPO3\CMS\Extbase\Object\Container\ClassInfoCache::$level1Cache = array()
private

Definition at line 26 of file ClassInfoCache.php.

◆ $level2Cache

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

Definition at line 31 of file ClassInfoCache.php.