Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ICache.Insert(Object, Object, TimeSpan) Method

Inserts an item into the cache.

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

Parameters

key
Item key.
value
Item value.
timeToLive
Item's time-to-live.

Remarks

Items inserted using this method have default cache priority.

See Also

ICache Interface | Spring.Caching Namespace | ICache.Insert Overload List