Class CacheEntry<TKey, TValue>
Client cache entry returned from Get(TKey) operation.
Inheritance
System.Object
CacheEntry<TKey, TValue>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Scaleout.Client.InProc
Assembly: Scaleout.Client.dll
Syntax
public class CacheEntry<TKey, TValue>
Type Parameters
Name | Description |
---|---|
TKey | Type of key held in the client cache. |
TValue | Type of value held in the client cache. |
Constructors
Name | Description |
---|---|
CacheEntry(TKey, TValue, VersionToken) | Constructor. |
Properties
Name | Description |
---|---|
Age | Gets the age of the cached instance held in the in-process cache. |
Key | Gets the key to the object in the ScaleOut service. |
Value | Gets the cached instance of the object held in the in-process cache. |
Version | Gets the version of the object in the ScaleOut service. |
Methods
Name | Description |
---|---|
Touch() | Updates the age of the client cache entry to the current time. Called after a round trip to the service confirms that the entry is up-to-date. |