Gets and returns the hashvalue and 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.3.0.0 (23.3.0.0)
Syntax
(TValue , string ) GetOrInsertWithHash( Uri uri, TKey key, Func<TKey, TValue> createMethod )
Parameters
- uri
- Type: SystemUri
uri identifing the database - key
- Type: TKey
The item to get - createMethod
- Type: SystemFuncTKey, TValue
[Missing <param name="createMethod"/> documentation for "M:Scanjour.Workflow4.Base.Cache.IObjectCache`2.GetOrInsertWithHash(System.Uri,`0,System.Func{`0,`1})"]
Return Value
Type: ValueTupleTValue, StringThe object and the hash of the object identified by the key
See Also