ICacheProviderSetData Method |
Sets the data with value and expiration time of key into the cache.
Namespace: Dundas.BI.ExtensibilityAssembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntaxbool SetData(
string key,
Object value,
TimeSpan timeToLive
)
Function SetData (
key As String,
value As Object,
timeToLive As TimeSpan
) As Boolean
bool SetData(
String^ key,
Object^ value,
TimeSpan timeToLive
)
abstract SetData :
key : string *
value : Object *
timeToLive : TimeSpan -> bool 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
See Also