Bagikan melalui


CacheKey Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets a cache key string that can be used as a part of a cache key when caching query results.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property CacheKey As String
'Usage
Dim instance As CatalogSearchOptions
Dim value As String

value = instance.CacheKey
public override string CacheKey { get; }
public:
virtual property String^ CacheKey {
    String^ get () override;
}
public override function get CacheKey () : String

Property Value

Type: System..::.String
The computed cache key.

Remarks

Commerce Server will return the same cache key if the settings are the same for all search option properties. The site can create a searchOptions and store the key for reuse. Therefore, CacheKey recomputes the key only when any of the search options is changed.

Permissions

See Also

Reference

CatalogSearchOptions Class

CatalogSearchOptions Members

Microsoft.CommerceServer.Catalog Namespace