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
# HANDLE RetrieveCacheFromDisc (FetchRepositoryObjectParameter) Attempts to retrieve repository data from the persistent 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

PROTECTED HANDLE RetrieveCacheFromDisc (FetchRepositoryObjectParameter)

Purpose: Attempts to retrieve repository data from the persistent 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-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:07:15