'Declaration Public Overloads Overrides Sub Set(Of T)( _ ByVal item As System.Runtime.Caching.CacheItem, _ ByVal policy As System.Runtime.Caching.CacheItemPolicy _ )
'Usage Dim instance As MemoryCacheProvider Dim item As System.Runtime.Caching.CacheItem Dim policy As System.Runtime.Caching.CacheItemPolicy instance.Set(Of T)(item, policy)
public override void Set<T>( System.Runtime.Caching.CacheItem item, System.Runtime.Caching.CacheItemPolicy policy )
Parameters
- item
- The cache item to add.
- 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