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

Package DE_EPAGES::DataCache::API::SessionCache

This package provides an interface to cache data for a single request. All packages uses the same namespace for cache names.

@EXPORT_OK
GetCache
UpdateCache

Functions

GetCache
UpdateCache

GetCache

Gets a named cache. Creates a cache if not exists.

Syntax
$NamedCache = GetCache($CacheName);
Input
$CacheName (string)
name of cache
Return
$NamedCache (ref.hash)
data

UpdateCache

Deletes the cache entry. If no parameter is submitted then the complete cache will be cleared.

Syntax
UpdateCache($CacheName, $Parameter);
Input
$CacheName (string)
name of cache
$Parameter (string)
which entry should be deleted (optional)