ICacheProviderSetData Method

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

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

Parameters

key
Type: SystemString
The unique key of the data.
value
Type: SystemObject
The value to be stored.
timeToLive
Type: SystemTimeSpan
The expirataion time.

Return Value

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