The Redis distributed caching integration provides a Redis-backed implementation of the standard ASP.NET Core IDistributedCache interface. It allows developers to use Redis for session state, data protection, and [OutputCache] without manually managing connection strings or complex service registrations.
Key benefits include:
- Automatic Registration:
AddRedisDistributedCache registers IDistributedCache and the underlying IConnectionMultiplexer. - Health Checks: Built-in checks verify Redis reachability before the app reports as healthy.
- Observability: Integrated OpenTelemetry for logging, distributed tracing, and metrics.
- Compatibility: Works transparently with ASP.NET Core higher-level abstractions.
Note: This specific integration (Aspire.StackExchange.Redis.DistributedCaching) is for C# apps. TypeScript, Go, and Python consumers should use the standard Redis client integration instead.