Share via


CacheManager Object

Ee783653.c++_off(en-US,CS.10).gifEe783653.vb_on(en-US,CS.10).gif

Use this object to establish and use a collection of data caches. Each data cache is either a Dictionary object or an LRUCache object. You can specify which one you would like to use by setting the CacheObjectProgID property.

ProgID:   Commerce.CacheManager (Externally creatable)
COM Class Name:   CacheManager
COM Interface Name:   ICacheManager
Interface ID Constant:   IID_ICacheManager
Header File:   None
Type Library Name:   Microsoft Commerce 2000 Cache Manager Type Library
DLL Name:   mscscache.dll
Threading Model:   Both

In C++, use the ICacheManager interface to access the properties and methods of the CacheManager object.

The properties of the CacheManager object are shown the following table.

Property Type Description
AppUrl BSTR Stores the full Uniform Resource Locator (URL) of the application.

This property is read/write.

CacheObjectProgId BSTR Stores the Programmatic Identifier (ProgID) for the object that is to be used for cache functions internally within the CacheManager object. Determines the type of object returned by the GetCache method.

This property is read/write.

LoaderConfig IDispatch Stores the configuration Dictionary object that should be passed to the Loader component.

This property is read/write.

LoaderProgId BSTR Stores the ProgID of the component used to create and populate a data cache.

This property is read/write.

RefreshInterval long Stores the number of seconds between automatic cache refresh operations.

This property is read/write.

RetryInterval long Stores the number of seconds to wait before retrying after a cache load has failed.

This property is read/write.

WriterConfig IDispatch Stores the configuration Dictionary object that should be passed to the Writer component.

This property is read/write.

WriterProgId BSTR Stores the ProgID of the component used to write out some type of data that has been accumulated since the last refresh. Advertising event data is one example of the type of data that might be accumulated.

This property is read/write.

The methods of the CacheManager object are shown in the following table.

Method Description
GetCache Retrieves the data cache Dictionary object associated with a specified data cache name.
RefreshCache Forces an immediate, synchronous refresh of the cache.

See Also

General Purpose Programming Concepts

Code to Implement Custom Cache Components


All rights reserved.