Commerce Foundation CommerceCache

The Microsoft Multi-Channel Commerce Foundation CommerceCache represents the caches in Commerce Server, and is used to refresh a specified cache.

Model

<CommerceEntity name="CommerceCache">
  <DisplayName value="CommerceCache" />
    <Properties>
        <Property name="Name" dataType="String" />
    </Properties>
</CommerceEntity>

Properties

Property

Type

Description

Name

String

The name of the CommerceCache. The following caches are supported by Microsoft Multi-Channel Commerce Foundation:

NameAction
AllCachesRefreshes all cached data.
AllMarketingCaches
Refreshes all Advertising and Discounts caches.
Dd451391.alert_note(en-US,CS.90).gifNote:
The list of Commerce caches containing Advertisements and Discounts must be configured in the MessageHandler for this operation. See Configuration below.
CatalogCache Refreshes all cached catalog data.
CommerceCachesRefreshes all caches configured in the caches element of the application configuration file.
ProfileCache
Refreshes all cached profile data.
Dd451391.alert_note(en-US,CS.90).gifNote:
Refreshing this cache is not supported when the Microsoft Multi-Channel Commerce Foundation service is configured to use shared commerce contexts (useSharedCommerceContexts="true").
SiteTermCacheRefreshes all cached site term data.

If any other value is provided, it is interpreted as the name of a specific cache configured in the caches element of the application configuration file.

Properties

String

Dictionary that the system uses to hold all of the simple properties, for example, strings or integers, that are associated with the CommerceCache.

Configuration

The CacheRefreshProcessor operation sequence component can be configured to specify the list of Marketing Cache names. Default Marketing Cache names are "Advertising" and "Discounts". For example:

<Component name="Refresh Commerce Cache" type="Microsoft.Commerce.Providers.Components.CacheRefreshProcessor, Microsoft.Commerce.Providers, Version=1.0.0.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35" >
     <Configuration customElementName="MarketingCacheNames" customElementType="Microsoft.Commerce.Providers.Components.CacheRefreshConfigurationCollection, Microsoft.Commerce.Providers, Version=1.0.0.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35">
        <MarketingCacheNames>
            <add name="Advertising" />
            <add name="Discounts" />
        </MarketingCacheNames>
     </Configuration>
</Component>

Relationships

None.

Supported Operations

Commerce Foundation CommerceCache Update

See Also

Other Resources

Working with Commerce Foundation Caches

Commerce Foundation CommerceCache Update