IObjectCacheTKey, TValueGetOrInsertAll Method

Gets and returns all objects if any 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#
IEnumerable<(TKey , TValue )> GetOrInsertAll(
	Uri uri,
	Func<IEnumerable<(TKey , TValue )>> createMethod
)

Parameters

uri  Uri
uri identifing the database
createMethod  FuncIEnumerableValueTupleTKey, TValue
Function that is able to create a cacheitem

Return Value

IEnumerableValueTupleTKey, TValue
All The objects of the type

See Also