Cache your methods with just a simple custom attribute.
- Improve application performance without adding repetitive code.
- Reduce cache key generation bugs.
- Support for C# MemoryCache, Redis Cache, Pub/Sub, and more.
- Customizable. Plug in your own cache storage.
More than 10% of all Fortune 500 companies have already chosen PostSharp.
Declarative caching and invalidation
Add caching to a method with a simple custom attribute.
Cache key automatically generated based on method name and parameter values.
Invalidate cached method with custom attribute and automatic, build-time parameter matching.
- Improve seperation of concerns between readers and updaters.
- Dependencies of called methods automatically added to the caller context.