IObjectCacheTKey, TValueGetOrInsert Method

Scanjour Workflow4 Reference Manual
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: 21.3.0.0 (21.3.0.0)
Syntax

TValue GetOrInsert(
	TKey key,
	Func<TKey, TValue> createMethod
)

Parameters

key
Type: TKey
The key of the item to get
createMethod
Type: SystemFuncTKey, TValue

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

Return Value

Type: TValue
The object identified by the key
See Also

Reference