| IAdhocCacheServiceAddT Method |
Add the specified object to the cache
Namespace:
SanteDB.Core.Services
Assembly:
SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax void Add<T>(
string key,
T value,
TimeSpan? timeout = null
)
Sub Add(Of T) (
key As String,
value As T,
Optional timeout As TimeSpan? = Nothing
)
generic<typename T>
void Add(
String^ key,
T value,
Nullable<TimeSpan> timeout = nullptr
)
abstract Add :
key : string *
value : 'T *
?timeout : Nullable<TimeSpan>
(* Defaults:
let _timeout = defaultArg timeout null
*)
-> unit
Parameters
- key
- Type: SystemString
The key to assign the cache - value
- Type: T
The value to store in the cache - timeout (Optional)
- Type: SystemNullableTimeSpan
The timeout for the object validity
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:SanteDB.Core.Services.IAdhocCacheService.Add``1(System.String,``0,System.Nullable{System.TimeSpan})"]
See Also