NET Caching Library Help
Set<T>(CacheItem,CacheItemPolicy) Method




KellermanSoftware.NetCachingLibrary.CacheProviders Namespace > BaseDatabaseCacheProvider Class > Set Method : Set<T>(CacheItem,CacheItemPolicy) Method
The item to save to the cache
Expiration information
Insert or update an item in the cache
Syntax
'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 BaseDatabaseCacheProvider
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
)
public: void Set<T>( 
   System.Runtime.Caching.CacheItem* item,
   System.Runtime.Caching.CacheItemPolicy* policy
) override 
public:
void Setgeneric<typename T>
( 
   System.Runtime.Caching.CacheItem^ item,
   System.Runtime.Caching.CacheItemPolicy^ policy
) override 

Parameters

item
The item to save to the cache
policy
Expiration information

Type Parameters

T
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BaseDatabaseCacheProvider Class
BaseDatabaseCacheProvider Members
Overload List