Adds per-request caching and optional invalidation using MediatR pipeline behaviors.
See Getting Started for more information.
This library came out of the need to incorporate caching into a project that used MediatR fairly extensively including validation, authorisation and logging through its inbuilt Pipeline bevhaiors and caching seemed like a logical choice to include in the pipeline as another cross-cutting concern. As with MediatR overall, the final solution is elegant and almost effortless to include into an existing project and also includes an extremely powerful cache invalidation pipeline behavior to invalidate cached requests based on any other requests being sent.