ePages 6.10 - DE_EPAGES/DataCache/API/Config.pm

Package DE_EPAGES::DataCache::API::Config

This module contains all functions needed to configure the datacache.

@EXPORT_OK
DataCacheConfig
ConfigCacheSize

Functions

ConfigCacheSize
DataCacheConfig

ConfigCacheSize

Reads the DataCache.conf and returns the cache size for given cache. Hint: Returns 999999 if the configured value is 'unlimited'. Returns undef if no cache size is configured.

Syntax
$NumberOfElements = ConfigCacheSize($CacheKey, $CacheName);
Example
$NumberOfElements = ConfigCacheSize(GetCurrentConnection()->cacheKey, 'InfoHook');
Input
$CacheKey (string)
connection cache identifier DE_EPAGES::Database::API::DBI::cacheKey
$CacheName (string)
cache name
Return
$NumberOfElements (int)
how many elements should the cache contain

DataCacheConfig

Returns the IniConfig object of the DataCache.conf file.

Syntax
$IniConfig = DataCacheConfig();
Return
$IniConfig (object)
config object, see DE_EPAGES::Core::API::IniConfig