CommonAppenders..::..CacheAllItems<(Of <(<'TCollection, TItem>)>)> Method
Caches all items in the result set.
Namespace:
Tortuga.ChainAssembly: Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)
Syntax
public static ICacheLink<TCollection> CacheAllItems<TCollection, TItem>( this ILink<TCollection> previousLink, Func<TItem, string> cacheKeyFunction, Nullable<CachePolicy> policy ) where TCollection : IEnumerable<TItem>
<ExtensionAttribute> _ Public Shared Function CacheAllItems(Of TCollection As IEnumerable(Of TItem), TItem) ( _ previousLink As ILink(Of TCollection), _ cacheKeyFunction As Func(Of TItem, String), _ policy As Nullable(Of CachePolicy) _ ) As ICacheLink(Of TCollection)
[ExtensionAttribute] public: generic<typename TCollection, typename TItem> where TCollection : IEnumerable<TItem> static ICacheLink<TCollection>^ CacheAllItems( ILink<TCollection>^ previousLink, Func<TItem, String^>^ cacheKeyFunction, Nullable<CachePolicy^> policy )
Type Parameters
- TCollection
- The type of the t collection.
- TItem
- The type of the t item.
Parameters
- previousLink
- Type: Tortuga.Chain..::..ILink<(Of <(<'TCollection>)>)>
The previous link.
- cacheKeyFunction
- Type: Func<(Of <(<'TItem, String>)>)>
Function to generate cache keys.
- policy
- Type: Nullable<(Of <(<'CachePolicy>)>)>
Optional cache policy.