Sets an item into the cache overwriting any existing item with the same key.

Namespace:  Mindscape.LightSpeed.Caching
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public void SetItem(
	string key,
	Object item,
	TimeSpan expiry
)
Visual Basic (Declaration)
Public Sub SetItem ( _
	key As String, _
	item As Object, _
	expiry As TimeSpan _
)

Parameters

key
Type: System..::.String
The key of the item to be stored.
item
Type: System..::.Object
The item to be stored.
expiry
Type: System..::.TimeSpan
The interval after which the item expires and is removed from the cache.

Implements

ICache..::.SetItem(String, Object, TimeSpan)

See Also