NET Caching Library Help
Set<T>(String,T,DateTimeOffset,String) Method




KellermanSoftware.NetCachingLibrary.CacheProviders Namespace > BaseCacheProvider Class > Set Method : Set<T>(String,T,DateTimeOffset,String) Method
A unique identifier for the cache entry.
The object to insert.
The fixed date and time at which the cache entry will expire.
Optional. A named region in the cache to which the cache entry can be added. The default value for the optional parameter is Default
Insert or update a cache entry in the cache, specifying time-based expiration details.
Syntax
'Declaration
 
Public Overloads Sub Set(Of T)( _
   ByVal key As System.String, _
   ByVal value As T, _
   ByVal absoluteExpiration As System.DateTimeOffset, _
   Optional ByVal regionName As System.String _
) 
'Usage
 
Dim instance As BaseCacheProvider
Dim key As System.String
Dim value As T
Dim absoluteExpiration As System.DateTimeOffset
Dim regionName As System.String
 
instance.Set(Of T)(key, value, absoluteExpiration, regionName)
public void Set<T>( 
   System.string key,
   T value,
   System.DateTimeOffset absoluteExpiration,
   System.string regionName
)
public: void Set<T>( 
   System.string* key,
   T* value,
   System.DateTimeOffset absoluteExpiration,
   System.string* regionName
) 
public:
void Setgeneric<typename T>
( 
   System.String^ key,
   T^ value,
   System.DateTimeOffset absoluteExpiration,
   System.String^ regionName
) 

Parameters

key
A unique identifier for the cache entry.
value
The object to insert.
absoluteExpiration
The fixed date and time at which the cache entry will expire.
regionName
Optional. A named region in the cache to which the cache entry can be added. The default value for the optional parameter is Default

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

BaseCacheProvider Class
BaseCacheProvider Members
Overload List