djjlewis / Imprise.MediatR.Extensions.Caching

Caching and cache invalidation of MediatR Requests via Pipeline Behaviors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MediatR Caching and Cache Invalidation Behaviors

Adds per-request caching and optional invalidation using MediatR pipeline behaviors.

See Getting Started for more information.

About

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.

Primary Authors and Contributors

Daniel Lewis (@djjlewis)

About

Caching and cache invalidation of MediatR Requests via Pipeline Behaviors

License:Apache License 2.0


Languages

Language:C# 100.0%