'Declaration Public Overloads Function AddOrGetExisting(Of T)( _ ByVal value As System.Runtime.Caching.CacheItem, _ ByVal policy As System.Runtime.Caching.CacheItemPolicy _ ) As System.Runtime.Caching.CacheItem
'Usage Dim instance As BaseCacheProvider Dim value As System.Runtime.Caching.CacheItem Dim policy As System.Runtime.Caching.CacheItemPolicy Dim value As System.Runtime.Caching.CacheItem value = instance.AddOrGetExisting(Of T)(value, policy)
public System.Runtime.Caching.CacheItem AddOrGetExisting<T>( System.Runtime.Caching.CacheItem value, System.Runtime.Caching.CacheItemPolicy policy )
Parameters
- value
- The object to insert.
- policy
- An object that contains eviction details for the cache entry. This object provides more options for eviction than a simple absolute expiration.
Type Parameters
- T
Return Value
If a cache entry with the same key exists, the specified cache entry; otherwise, null.