Gets and returns the object if it exists in the cache otherwise the supplied createMethod is used to
get the item from the repository
Namespace: Scanjour.Workflow4.Base.Cache
Assembly: Scanjour.Workflow4.Base (in Scanjour.Workflow4.Base.dll) Version: 23.2.0.0 (23.2.0.0)
Syntax
Parameters
- uri
- Type: SystemUri
uri identifing the database - key
- Type: TKey
The key of the item to get - createMethod
- Type: SystemFuncTKey, TValue
Function that is able to create a cacheitem
Return Value
Type: TValueThe object identified by the key
See Also