ConfigurationCacheHelper.SaveToCache Method

The SaveToCache method saves in memory the pipeline configuration used by the specified pipeline, and returns a unique token that can be used later by the LoadFromCache method to retrieve the cached configuration.

Syntax

ConfigurationCacheHelper.SaveToCache(Pipeline)

Parameters

Pipeline
An object created as an instance of MtsPipeline or MtsTxPipeline, whose pipeline configuration has already been loaded.

Example

This example assumes that the following actions have occurred.

Given these assumptions, the following script saves the pipeline configuration used by the pipeline into cache memory. It also saves a token for later retrieval of the configuration into the application variable PlanCache:

Application("PlanCache") = cacheHelper.SaveToCache(pipeline)

Related Topics


© 1997-1998 Microsoft Corporation. All rights reserved.