Class cItemCache
Class cItemCache.
Implements features to cache entries, usually result sets of Item classes. Contains a list of self instances, where each instance contains cached Items fore one specific table.
Package: Core\GenericDB
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc murat@purc.de
Located at classes/genericdb/class.item.cache.php
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc murat@purc.de
Located at classes/genericdb/class.item.cache.php
protected
|
|
protected
|
|
public static
|
#
getInstance( string $sTable, array $aOptions = array() )
Returns item cache instance, creates it, if not done before. Works as a singleton for one specific table. |
public
array
|
|
public
array
|
|
public
array
|
#
getItemByProperty( mixed $mProperty, mixed $mValue )
Returns existing entry from cache by matching propery value. |
public
array
|
#
getItemByProperties( array $aProperties )
Returns existing entry from cache by matching properties and their values. |
public
|
|
public
|
|
public
|
protected static
array
|
$_oInstances
List of self instances (cItemCache) |
#
array()
|
protected
array
|
$_aItemsCache
Assoziative cache array |
#
array()
|
protected
string
|
$_sTable
Table name for current instance |
#
''
|
protected
integer
|
$_iMaxItemsToCache
Max number of items to cache |
#
10
|
protected
boolean
|
$_bEnable
Enable caching |
#
false
|