Table of Contents

Interface IResultCachePolicy

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

Determines whether results should be cached for a dispatch message.

public interface IResultCachePolicy
Extension Methods

Methods

ShouldCache(IDispatchMessage, object?)

Returns true when the result should be cached.

bool ShouldCache(IDispatchMessage message, object? result)

Parameters

message IDispatchMessage

The dispatch message.

result object

The action result.

Returns

bool

true to cache the result.