Partager via


CacheItemKey Constructors

Definition

Overloads

CacheItemKey(CacheItemKey)

Initializes a new instance of the CacheItemKey struct.

CacheItemKey(CacheContainerKey, String)

Initializes a new instance of the CacheItemKey struct.

CacheItemKey(ReadOnlyMemory<Byte>, Int64)

Initializes a new instance of the CacheItemKey struct.

CacheItemKey(CacheItemKey)

Initializes a new instance of the CacheItemKey struct.

public:
 CacheItemKey(Microsoft::VisualStudio::RpcContracts::Caching::CacheItemKey copyFrom);
public CacheItemKey (Microsoft.VisualStudio.RpcContracts.Caching.CacheItemKey copyFrom);
new Microsoft.VisualStudio.RpcContracts.Caching.CacheItemKey : Microsoft.VisualStudio.RpcContracts.Caching.CacheItemKey -> Microsoft.VisualStudio.RpcContracts.Caching.CacheItemKey
Public Sub New (copyFrom As CacheItemKey)

Parameters

copyFrom
CacheItemKey

The value to copy from.

Applies to

CacheItemKey(CacheContainerKey, String)

Initializes a new instance of the CacheItemKey struct.

public:
 CacheItemKey(Microsoft::VisualStudio::RpcContracts::Caching::CacheContainerKey containerKey, System::String ^ itemName);
public CacheItemKey (Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey containerKey, string itemName);
new Microsoft.VisualStudio.RpcContracts.Caching.CacheItemKey : Microsoft.VisualStudio.RpcContracts.Caching.CacheContainerKey * string -> Microsoft.VisualStudio.RpcContracts.Caching.CacheItemKey
Public Sub New (containerKey As CacheContainerKey, itemName As String)

Parameters

containerKey
CacheContainerKey

The key for the container to access.

itemName
String

The name of the cache item.

Applies to

CacheItemKey(ReadOnlyMemory<Byte>, Int64)

Initializes a new instance of the CacheItemKey struct.

public:
 CacheItemKey(ReadOnlyMemory<System::Byte> contentHash, long contentSize);
public CacheItemKey (ReadOnlyMemory<byte> contentHash, long contentSize);
new Microsoft.VisualStudio.RpcContracts.Caching.CacheItemKey : ReadOnlyMemory<byte> * int64 -> Microsoft.VisualStudio.RpcContracts.Caching.CacheItemKey
Public Sub New (contentHash As ReadOnlyMemory(Of Byte), contentSize As Long)

Parameters

contentHash
ReadOnlyMemory<Byte>

Content hash that matches to the server specification.

contentSize
Int64

Actual content size in the storage.

Remarks

The keys should either be retrieved via AddItemAsync(PipeReader, CacheStorageTypes, CancellationToken) method or through Items collection.

Applies to