 | MemoryCacheServiceGetCacheItemTData(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.Caching.MemoryAssembly: SanteDB.Caching.Memory (in SanteDB.Caching.Memory.dll) Version: 3.0.2081-alpha+73f4bcede15fc876f30607896483d7d817ecc787
Syntaxpublic TData GetCacheItem<TData>(
Guid key
)
where TData : IdentifiedData
Public Function GetCacheItem(Of TData As IdentifiedData) (
key As Guid
) As TData
public:
generic<typename TData>
where TData : IdentifiedData
virtual TData GetCacheItem(
Guid key
) sealed
abstract GetCacheItem :
key : Guid -> 'TData when 'TData : IdentifiedData
override 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
Implements
IDataCachingServiceGetCacheItemTData(Guid)
See Also