Previous in Contents Next in Contents

ConfigurationCacheHelper.LoadFromCache Method

The LoadFromCache method retrieves a pipeline configuration previously saved in memory and loads this configuration into the specified pipeline. Once the configuration has been cached (with SaveToCache), the LoadFromCache method can be used instead of the pipeline's LoadPipe method.

Syntax

ConfigurationCacheHelper.LoadFromCache(Pipeline, CacheToken)

Parameters

Pipeline
The pipeline object created as an instance of MtsPipeline or MtsTxPipeline, whose configuration is to be loaded.
CacheToken
The token generated by a previous call to SaveToCache, used to identify the desired pipeline configuration cached in memory.

Example

This example assumes that the following actions have occurred.

Given these assumptions, the following script retrieves the pipeline configuration from cache memory and loads it into the pipeline:

cacheHelper.LoadFromCache pipeline, Application("PlanCache")

Related Topics


© 1997-2000 Microsoft Corporation. All rights reserved.