Click or drag to resize

IDataCachingServiceGetCacheItemTData Method (Guid)

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.Services
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
TData GetCacheItem<TData>(
	Guid key
)
where TData : IdentifiedData

Parameters

key
Type: SystemGuid
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

Type: TData
The retrieved item
See Also