Open this page in the API Guide

ICacheService.SetData 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 (25.1.0.1000)
Syntax
bool SetData(
	string key,
	Object value,
	TimeSpan timeToLive
)

Parameters

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

Return Value

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