Namespace: Consultingwerk.Framework.Base
Class 
ValueObjectCacheBase Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Inherited by: Consultingwerk.Framework.Base.ValueObjectCache
ABSTRACT

File:ValueObjectCacheBase
Purpose:Abstract base class for Value Object Cache implementations
Description:Caches value objects for a specified amount of time (seconds)
and flushes objects aged too much from the cache. Objects
are stored based on a character key
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Thu Dec 27 20:45:50 CET 2018



Top Method Summary
Options Name Purpose
# Progress.Lang.Object GetCachedObjectInternal (character) Returns a cached objet
# StoreObjectInternal (character, Object) Stores an object in the cache

Top Constructor Summary
Options Name Purpose
+ ValueObjectCacheBase (integer) Constructor for the ValueObjectCacheBase class

Top Property Summary
Options Name Purpose
+ INTEGER MaxCacheAge


Method Detail
Top

PROTECTED Progress.Lang.Object GetCachedObjectInternal (character)

Purpose: Returns a cached objet
Notes:

Parameters:
pcCacheKey CHARACTER
The key under which the object is stored
Returns Progress.Lang.Object
The reference to the cached object or ? when the object is either not cached or the cache is outdated
Top

PROTECTED StoreObjectInternal (character, Object)

Purpose: Stores an object in the cache
Notes:

Parameters:
pcCacheKey CHARACTER
The key under which the object should be stored
poObject Progress.Lang.Object
The reference to the value object to be stored


Constructor Detail
Top

PUBLIC ValueObjectCacheBase (integer)

Purpose: Constructor for the ValueObjectCacheBase class
Notes:

Parameters:
piMaxCacheAge INTEGER
The number of seconds objects should remain cached


Property Detail
Top

PUBLIC INTEGER MaxCacheAge


Returns INTEGER


©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:26:28