Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AspNetCache.Insert(Object, Object, TimeSpan, Boolean) Method

Inserts an item into the cache.

[Visual Basic]
Public Overloads Sub Insert( _
   ByVal key As Object, _
   ByVal value As Object, _
   ByVal timeToLive As TimeSpan, _
   ByVal slidingExpiration As Boolean _
)
[C#]
public void Insert(
   object key,
   object value,
   TimeSpan timeToLive,
   bool slidingExpiration
);

Parameters

key
Item key.
value
Item value.
timeToLive
Item's time-to-live.
slidingExpiration
Flag specifying whether the item's time-to-live should be reset when the item is accessed.

See Also

AspNetCache Class | Spring.Caching Namespace | AspNetCache.Insert Overload List