| RedisAdhocCacheTryGetT Method |
Try to fetch key from the cache
Namespace:
SanteDB.Caching.Redis
Assembly:
SanteDB.Caching.Redis (in SanteDB.Caching.Redis.dll) Version: 3.0.481-alpha
Syntax public bool TryGet<T>(
string key,
out T value
)
Public Function TryGet(Of T) (
key As String,
<OutAttribute> ByRef value As T
) As Boolean
public:
generic<typename T>
virtual bool TryGet(
String^ key,
[OutAttribute] T% value
) sealed
abstract TryGet :
key : string *
value : 'T byref -> bool
override TryGet :
key : string *
value : 'T byref -> bool
Parameters
- key
- Type: SystemString
The key of the object to attempt to fetch - value
- Type: T
The fetched value
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:SanteDB.Caching.Redis.RedisAdhocCache.TryGet``1(System.String,``0@)"]
Return Value
Type:
BooleanTrue if the object was fetched
Implements
IAdhocCacheServiceTryGetT(String, T)See Also