Namespace: Consultingwerk.SmartFramework.Repository
Class 
SmartRepositoryCache Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.SmartFramework.Repository.ISmartRepositoryCache

File:SmartRepositoryCache
Purpose:Service providing caching functionality for the
ISmartRepositoryService:FetchRepositoryObject method
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed Oct 03 00:31:36 CEST 2018
Notes:The cache can be configured with a max age after which
cached repository data would be disposed. This configuration
is performed using the RepositoryCacheMaxAge setting in
the .restapplicationsettings file. The value is in seconds
(3600 for 1 hr). A setting of 0 turns off the automatic
cache refresh



Top Method Summary
Options Name Purpose
+ ClearCache () Clears the Cache
+ HANDLE GetRepositoryData (FetchRepositoryObjectParameter) Retrieves repository data from the cache
+ StoreRepositoryData (FetchRepositoryObjectParameter, handle) Stores repository data in the cache

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


Method Detail
Top

PUBLIC ClearCache ()

Purpose: Clears the Cache
Notes:

Top

PUBLIC HANDLE GetRepositoryData (FetchRepositoryObjectParameter)

Purpose: Retrieves repository data from the cache
Notes: The caller is responsible for deleting the returned ProDataset

Parameters:
poFetchRepositoryObjectParameter Consultingwerk.SmartFramework.Repository.FetchRepositoryObjectParameter
The FetchRepositoryObjectParameter of the request
Returns HANDLE
The dataset with the repository data
Top

PUBLIC StoreRepositoryData (FetchRepositoryObjectParameter, handle)

Purpose: Stores repository data in the cache
Notes: Creates a copy of the passed in ProDataset

Parameters:
poFetchRepositoryObjectParameter Consultingwerk.SmartFramework.Repository.FetchRepositoryObjectParameter
The FetchRepositoryObjectParameter of the request
phDataset HANDLE
The dataset with the repository data


Constructor Detail
Top

PUBLIC SmartRepositoryCache ()

Purpose: Constructor for the SmartRepositoryCache class
Notes:



©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:26:33