 | IAdhocCacheServiceAddT Method |
Add the specified object to the cache
Namespace: SanteDB.Core.ServicesAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntaxvoid 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 String
- The key to assign the cache
- value T
- The value to store in the cache
- timeout NullableTimeSpan (Optional)
- 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