Property Version
Version
NCache uses cache item versioning. Cache
This property allows you to track, whether any change occurred in an item or not. When you fetch an item from cache, you also fetch its current version from the cache.
Declaration
public CacheItemVersion Version { get; set; }
Property Value
Type | Description |
---|---|
Cache |
A numeric value used to represent the version of the cached item. |
Examples
The following example gets Cache
CacheItem item = cache.GetCacheItem("Product0");
Console.WriteLine("Version: {0}", item.Version.Version);