 | IDataCachingServiceGetCacheItemTData(Guid) Method |
Gets the cache item specified by key returning it as a casted instance of TData. Returning the default of TData if the
object doesn't exist or if the object is the wrong type.
Namespace: SanteDB.Core.ServicesAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
SyntaxTData GetCacheItem<TData>(
Guid key
)
where TData : IdentifiedData
Function GetCacheItem(Of TData As IdentifiedData) (
key As Guid
) As TData
generic<typename TData>
where TData : IdentifiedData
TData GetCacheItem(
Guid key
)
abstract GetCacheItem :
key : Guid -> 'TData when 'TData : IdentifiedDataParameters
- key Guid
- The key identifier of the object to fetch from cache
Type Parameters
- TData
- The type of data which is expected to be found with key
Return Value
TDataThe retrieved item
See Also