NET Caching Library Help
Save<T> Method (IAsyncProvider)




KellermanSoftware.NetCachingLibrary.CacheProviders Namespace > IAsyncProvider Interface : Save<T> Method
The key.
The value.
The policy.
Name of the region.
Insert or Add a cache item
Syntax
'Declaration
 
Sub Save(Of T)( _
   ByVal key As System.String, _
   ByVal value As T, _
   ByVal policy As System.Runtime.Caching.CacheItemPolicy, _
   Optional ByVal regionName As System.String _
) 
'Usage
 
Dim instance As IAsyncProvider
Dim key As System.String
Dim value As T
Dim policy As System.Runtime.Caching.CacheItemPolicy
Dim regionName As System.String
 
instance.Save(Of T)(key, value, policy, regionName)
void Save<T>( 
   System.string key,
   T value,
   System.Runtime.Caching.CacheItemPolicy policy,
   System.string regionName
)
void Save<T>( 
   System.string* key,
   T* value,
   System.Runtime.Caching.CacheItemPolicy* policy,
   System.string* regionName
) 
void Savegeneric<typename T>
( 
   System.String^ key,
   T^ value,
   System.Runtime.Caching.CacheItemPolicy^ policy,
   System.String^ regionName
) 

Parameters

key
The key.
value
The value.
policy
The policy.
regionName
Name of the region.

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

IAsyncProvider Interface
IAsyncProvider Members