 | RedisAdhocCacheAddT Method |
Add the specified object to the cache
Namespace: SanteDB.Caching.RedisAssembly: SanteDB.Caching.Redis (in SanteDB.Caching.Redis.dll) Version: 3.0.2081-alpha+ce906ccc8091ff0a3c40d1fff3e2485e75a86c5b
Syntaxpublic 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 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.Caching.Redis.RedisAdhocCache.Add``1(System.String,``0,System.Nullable{System.TimeSpan})"]
Implements
IAdhocCacheServiceAddT(String, T, NullableTimeSpan)
See Also