Adds an item into the cache, only if it does not already exist.

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

Syntax

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

Parameters

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

Implements

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

See Also