Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Static Public Member Functions | Data Fields | Static Public Attributes | Static Protected Member Functions
RedBeanModelsCache Class Reference
Inheritance diagram for RedBeanModelsCache:

Static Public Member Functions

static getModel ($modelIdentifier)
static cacheModel (RedBeanModel $model)
static forgetModel (RedBeanModel $model)
static forgetModelByIdentifier ($modelIdentifier)
static forgetAll ($onlyForgetPhpCache=false)
static forgetAllByModelType ($modelClassName)
static forgetAllModelIdentifiersToModels ()
- Static Public Member Functions inherited from ZurmoCache
static getCachePrefix ($identifier)
static setAdditionalStringForCachePrefix ($prefix= '')
static getAdditionalStringForCachePrefix ()
static supportsAndAllowsMemcache ()
static supportsAndAllowsPhpCaching ()
static supportsAndAllowsDatabaseCaching ()

Data Fields

- Data Fields inherited from ZurmoCache
const ALLOW_PHP_CACHING = true
const ALLOW_DB_CACHING = true
const CACHE_VALUE_KEY = 'value'
const CACHE_CHECKSUM_KEY = 'checksum'

Static Public Attributes

static $cacheType = 'M:'
- Static Public Attributes inherited from ZurmoCache
static $cacheType = 'Z:'

Static Protected Member Functions

static supportsAndAllowsMemcacheByModel (RedBeanModel $model)
static supportsAndAllowsMemcacheByModelClassName ($modelClassName)
static supportsAndAllowsMemcacheByModelIdentifier ($modelIndetifier)
- Static Protected Member Functions inherited from ZurmoCache
static getCacheIncrementValue ($cacheType)
static setCacheIncrementValue ($cacheType, $value)
static incrementCacheIncrementValue ($cacheType)
static isIdentifierCacheIncrementValueName ($identifier)
static clearMemcacheCache ()
static cacheValueAndChecksum ($key, $value)
static getCachedValueAndValidateChecksum ($key)

Additional Inherited Members

- Static Protected Attributes inherited from ZurmoCache
static $cacheIncrementValueVariableName = 'CacheIncrementValue'
static $additionalStringForCachePrefix = ''

Detailed Description

Caches RedBean models. If caching is configured it the cached models outlive requests. Either way the models are cached in php for the duration of the current request. This allows multiple references to the same cached model, whether it came out of the memcache or not, to reference the same php object.

Definition at line 44 of file RedBeanModelsCache.php.

Member Function Documentation

static getModel (   $modelIdentifier)

Get a cached model.

Definition at line 55 of file RedBeanModelsCache.php.

static cacheModel ( RedBeanModel  $model)

Cache a model maintaining the in memory model cache to a limited size.

Definition at line 80 of file RedBeanModelsCache.php.

static forgetModel ( RedBeanModel  $model)

Forget a cached model.

Definition at line 103 of file RedBeanModelsCache.php.

static forgetAll (   $onlyForgetPhpCache = false)

Forget all cached models.

$onlyForgetPhpCacheis for testing only. It is for artificially creating situations where memcache must be accessed for testing memcache and RedBeanModel serialization.

Definition at line 128 of file RedBeanModelsCache.php.

static forgetAllByModelType (   $modelClassName)

TODO: Only forget by model.

$modelClassName- string.

Definition at line 144 of file RedBeanModelsCache.php.

static forgetAllModelIdentifiersToModels ( )

Used for testing purposes if you need to clear out just the php caching.

Definition at line 153 of file RedBeanModelsCache.php.

The documentation for this class was generated from the following file:
Generated on Thu Aug 6 2020 07:10:58
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.