PostSharp
[Caching]

Cache your methods with just a simple custom attribute.

  • Enhance application performance without the need for repetitive code.
  • Minimize cache key generation errors.
  • Supports C# MemoryCache, Redis Cache, Pub/Sub, and more.
  • Customizable. Incorporate your own cache storage.
PostSharp Caching

Trusted by development teams worldwide in all industries.

Honda
Pricewaterhouse Coopers
Intel
Siemens Healthineers
Blackline
Fidelity Investments
AON
Bupa
Johnson Controls
Zeiss
Zeiss

Declarative Caching and Invalidation

declarative-caching
  • Integrate caching into a method using a straightforward custom attribute.

  • The cache key is automatically generated based on the method name and parameter values.

  • Invalidate the cached method with a custom attribute and automatic, build-time parameter matching.

  • Fully customizable.

Object-Oriented Invalidation

caching-invalidation
  • Enhance the separation of concerns between readers and updaters.
  • Dependencies of called methods are automatically added to the caller context.