| MemoryAdhocCacheServiceAddT Method |
Add the specified data to the cache
Namespace:
SanteDB.Caching.Memory
Assembly:
SanteDB.Caching.Memory (in SanteDB.Caching.Memory.dll) Version: 3.0.481-alpha
Syntax public void Add<T>(
string key,
T value,
TimeSpan? timeout = null
)
Public Sub Add(Of T) (
key As String,
value As T,
Optional timeout As TimeSpan? = Nothing
)
public:
generic<typename T>
virtual void Add(
String^ key,
T value,
Nullable<TimeSpan> timeout = nullptr
) sealed
abstract Add :
key : string *
value : 'T *
?timeout : Nullable<TimeSpan>
(* Defaults:
let _timeout = defaultArg timeout null
*)
-> unit
override Add :
key : string *
value : 'T *
?timeout : Nullable<TimeSpan>
(* Defaults:
let _timeout = defaultArg timeout null
*)
-> unit
Parameters
- key
- Type: SystemString
[Missing <param name="key"/> documentation for "M:SanteDB.Caching.Memory.MemoryAdhocCacheService.Add``1(System.String,``0,System.Nullable{System.TimeSpan})"]
- value
- Type: T
[Missing <param name="value"/> documentation for "M:SanteDB.Caching.Memory.MemoryAdhocCacheService.Add``1(System.String,``0,System.Nullable{System.TimeSpan})"]
- timeout (Optional)
- Type: SystemNullableTimeSpan
[Missing <param name="timeout"/> documentation for "M:SanteDB.Caching.Memory.MemoryAdhocCacheService.Add``1(System.String,``0,System.Nullable{System.TimeSpan})"]
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:SanteDB.Caching.Memory.MemoryAdhocCacheService.Add``1(System.String,``0,System.Nullable{System.TimeSpan})"]
Implements
IAdhocCacheServiceAddT(String, T, NullableTimeSpan)See Also