HybridCacheEntryContext.Revision Property

Definition

Gets a value that increments whenever a property on this instance is changed.

public:
 property int Revision { int get(); };
public int Revision { get; }
member this.Revision : int
Public ReadOnly Property Revision As Integer

Property Value

Remarks

Implementations of HybridCache can capture this value before invoking a factory callback and compare it afterwards to determine whether the factory changed any value. The value increments only when a setter assigns a different value than the current one.

Applies to