Sets the value at the specified cache key.

Namespace: Simol.Cache
Assembly: Simol (in Simol.dll) Version: 1.0.0.0

Syntax

C#
public void Put(
	string key,
	Object value
)
Visual Basic
Public Sub Put ( _
	key As String, _
	value As Object _
)
Visual C++
public:
virtual void Put(
	String^ key, 
	Object^ value
) sealed

Parameters

key
Type: System..::..String
The key.
value
Type: System..::..Object
The value.

Implements

IItemCache..::..Put(String, Object)

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionIf the key is null
System..::..ArgumentOutOfRangeExceptionIf the key is empty

See Also