PostSharp Caching
Cache C# 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.
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.
- Fully customizable.
Object-oriented invalidation
Improve separation of concerns between readers and updaters.
- Dependencies of called methods automatically added to the caller context.