Freigeben über


CacheItem Struct

Definition

Represents an item entry in a cache container. Each entry consists of the key and a name that is scoped to the container.

public value class CacheItem : IEquatable<Microsoft::VisualStudio::RpcContracts::Caching::CacheItem>
[System.Runtime.Serialization.DataContract]
public readonly struct CacheItem : IEquatable<Microsoft.VisualStudio.RpcContracts.Caching.CacheItem>
[<System.Runtime.Serialization.DataContract>]
type CacheItem = struct
Public Structure CacheItem
Implements IEquatable(Of CacheItem)
Inheritance
CacheItem
Attributes
Implements

Remarks

Same cache key can be stored in different containers with different names.

Constructors

CacheItem(String, CacheItemKey)

Initializes a new instance of the CacheItem struct.

Properties

EntryName

Gets the entry name that was provided when adding the item to a container.

Key

Gets the cache key to retrieve the item from CAS store.

Methods

Equals(CacheItem)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Operators

Equality(CacheItem, CacheItem)

Operator override for ==.

Inequality(CacheItem, CacheItem)

Operator override for !=.

Applies to