adds an items to the cache using the specified key and ttl Remarks: going to assume that a put with an existing key will not throw an exception but should rather update the item in the cache

Namespace: NHINDirect.Caching
Assembly: nhinCommon (in nhinCommon.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
protected virtual void Put(
	string key,
	T value,
	TimeSpan ttl
)
Visual Basic
Protected Overridable Sub Put ( _
	key As String, _
	value As T, _
	ttl As TimeSpan _
)
Visual C++
protected:
virtual void Put(
	String^ key, 
	T value, 
	TimeSpan ttl
)

Parameters

key
Type: System..::..String
string suffix for the key referencing the item in the cache
value
Type: T
class instance of the type V to be added to the cache
ttl
Type: System..::..TimeSpan
timepsan used to denote the duration of an items existence in the cache

See Also