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




KellermanSoftware.NetCachingLibrary.CacheProviders Namespace > FileCacheProvider Class > Set Method : Set<T>(CacheItem,CacheItemPolicy) Method
The item to insert or update into the cache
The expiration policy
Insert or update an item into 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 FileCacheProvider
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 insert or update into the cache
policy
The expiration policy

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

FileCacheProvider Class
FileCacheProvider Members
Overload List