IObjectCacheTKey, TValueGetOrInsertWithHash Method

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

Definition

Namespace: Scanjour.Workflow4.Base.Cache
Assembly: Scanjour.Workflow4.Base (in Scanjour.Workflow4.Base.dll) Version: 24.4.0.0 (24.4.0.0)
C#
(TValue , string ) GetOrInsertWithHash(
	Uri uri,
	TKey key,
	Func<TKey, TValue> createMethod
)

Parameters

uri  Uri
uri identifing the database
key  TKey
The item to get
createMethod  FuncTKey, TValue

[Missing <param name="createMethod"/> documentation for "M:Scanjour.Workflow4.Base.Cache.IObjectCache`2.GetOrInsertWithHash(System.Uri,`0,System.Func{`0,`1})"]

Return Value

ValueTupleTValue, String
The object and the hash of the object identified by the key

See Also