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.
ConfigurationCacheHelper.LoadFromCache(Pipeline, CacheToken)
This example assumes that the following actions have occurred.
cacheHelper
has been defined. pipeline
has been defined.PlanCache
has been defined. This variable contains the token identifying the pipeline configuration to be loaded into the pipeline.Given these assumptions, the following script retrieves the pipeline configuration from cache memory and loads it into the pipeline:
cacheHelper.LoadFromCache pipeline, Application("PlanCache")