Sitecore 5.0 API

GlobalCache.Add Method (String, Object, CacheItemPriority, TimeSpan, DateTime)

Adds the current instance.

[Visual Basic]
Overloads Public Shared Sub Add( _
   ByVal key As String, _
   ByVal value As Object, _
   ByVal priority As CacheItemPriority, _
   ByVal maxIdleTime As TimeSpan, _
   ByVal expiration As Date _
)
[C#]
public static void Add(
   string key,
   object value,
   CacheItemPriority priority,
   TimeSpan maxIdleTime,
   DateTime expiration
);

Parameters

key
Key.
value
Value.
priority
Priority.
maxIdleTime
Max idle of the time.
expiration
Expiration.

See Also

GlobalCache Class | Sitecore.Caching Namespace | GlobalCache.Add Overload List