CacheItemKey.Version Property

Definition

Gets an optional value for the cache item that labels the version of the cached value such that a stale or replaced value becomes inaccessible.

public:
 property ReadOnlyMemory<System::Byte> Version { ReadOnlyMemory<System::Byte> get(); void set(ReadOnlyMemory<System::Byte> value); };
[System.Runtime.Serialization.DataMember(Order=2)]
public ReadOnlyMemory<byte> Version { get; init; }
[<System.Runtime.Serialization.DataMember(Order=2)>]
member this.Version : ReadOnlyMemory<byte> with get, set
Public Property Version As ReadOnlyMemory(Of Byte)

Property Value

Attributes

Remarks

If supplied when storing a cache entry, this value is stored alongside the value. If supplied when retrieving a cache entry, this value must match the stored checksum or the cached value will not be retrieved.

Applies to