ICacheServiceSetData Method

Sets the data with value and expiration time of key into the cache.

Namespace: Dundas.BI
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
bool SetData(
	string key,
	Object value,
	TimeSpan timeToLive
)

Parameters

key  String
The unique key of the data.
value  Object
The value to be stored.
timeToLive  TimeSpan
The expirataion time.

Return Value

Boolean
if the data is succesfully stored in cache; otherwise, .
Exceptions
ExceptionCondition
ArgumentExceptionkey was or empty.
ArgumentNullExceptionvalue was .
See Also