DataCache.GetIfNewer Method (String, ref DataCacheItemVersion)
Gets an object from the cache, but only if a newer version of the object resides in the cache.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)
http://msdn.microsoft.com/en-us/library/microsoft.applicationserver.caching(v=azure.10).aspx
2011-08-26Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)
public Object GetIfNewer ( String key, /** @ref */ DataCacheItemVersion version )
Parameters
- key
The unique value that is used to identify the object in the cache.
- version
The version of the desired object, passed by reference.
Return Value
If the version in the cache differs from the version parameter, the corresponding cached object is returned. If the version in the cache is the same as the version parameter, null is returned.Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.