healthcheck-dotnet-redis

star 12

Đăng ký Redis readiness qua AddRedis() và HealthChecks:Readiness. Dùng khi project .NET cần probe cache Redis trên /health/ready.

hoangnh2412 By hoangnh2412 schedule Updated 5/16/2026

name: healthcheck-dotnet-redis description: Đăng ký Redis readiness qua AddRedis() và HealthChecks:Readiness. Dùng khi project .NET cần probe cache Redis trên /health/ready. dependencies: - AspNetCore.HealthChecks.Redis

Redis

"HealthChecks": {
  "Readiness": {
    "Redis": "Cache:Redis:Configuration"
  }
}
var keyPath = readiness.GetValue<string>("Redis");
var redisConnection = configuration[keyPath!];

if (!string.IsNullOrWhiteSpace(redisConnection))
{
    healthChecks.AddRedis(
        redisConnection,
        name: "redis",
        failureStatus: HealthStatus.Unhealthy,
        tags: [HealthCheckTags.Readiness],
        timeout: probeTimeout);
}
Install via CLI
npx skills add https://github.com/hoangnh2412/jarvis --skill healthcheck-dotnet-redis
Repository Details
star Stars 12
call_split Forks 2
navigation Branch main
article Path SKILL.md
More from Creator