CacheManager Object
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 |
Type Library Name: | Microsoft Commerce 2000 Cache Manager Type Library |
DLL Name: | mscscache.dll |
Threading Model: | Both |
The properties of the CacheManager object are shown the following table.
Property | Type | Description |
AppUrl | String | Stores the full Uniform Resource Locator (URL) of the application.
This property is read/write. |
CacheObjectProgId | String | 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 | String | 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 | String | 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