Table of Contents

Interface IResultCachePolicy<TMessage>

Namespace
Excalibur.Dispatch.Caching
Assembly
Excalibur.Dispatch.Caching.dll

Determines whether results should be cached for a specific message type.

public interface IResultCachePolicy<in TMessage> where TMessage : IDispatchMessage

Type Parameters

TMessage

The message type.

Extension Methods

Methods

ShouldCache(TMessage, object?)

Returns true when the result should be cached.

bool ShouldCache(TMessage message, object? result)

Parameters

message TMessage

The dispatch message.

result object

The action result.

Returns

bool

true to cache the result.