CacheContainerKey Constructors

Definition

Overloads

CacheContainerKey(String, IReadOnlyDictionary<String,String>)

Initializes a new instance of the CacheContainerKey struct.

CacheContainerKey(String, String, String)

Initializes a new instance of the CacheContainerKey class.

CacheContainerKey(String, IReadOnlyDictionary<String,String>)

Initializes a new instance of the CacheContainerKey struct.

public CacheContainerKey (string component, System.Collections.Generic.IReadOnlyDictionary<string,string?>? dimensions = default);
new Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey : string * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey
Public Sub New (component As String, Optional dimensions As IReadOnlyDictionary(Of String, String) = Nothing)

Parameters

component
String

The name of the feature that owns the container. This should be a namespaced feature name that is unlikely to collide with other components that may be sharing this cache.

dimensions
IReadOnlyDictionary<String,String>

Optional dictionary of arbitrary key=value pairs that serve as part of the "key" to the container. If this dictionary is an instance of ImmutableSortedDictionary<TKey,TValue> whose KeyComparer is set to Ordinal, the collection instance will be used directly by the Dimensions property; otherwise the collection will be copied.

Applies to

CacheContainerKey(String, String, String)

Initializes a new instance of the CacheContainerKey class.

public CacheContainerKey (string component, string? commitId = default, string? configuration = default);
new Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey : string * string * string -> Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey
Public Sub New (component As String, Optional commitId As String = Nothing, Optional configuration As String = Nothing)

Parameters

component
String

Component name that owns the container.

commitId
String

Optional commit id.

configuration
String

Optional configuration string to be used as an additional key.

Applies to