sup has a redis4cats module:

libraryDependencies += "com.kubukoz" %% "sup-redis" % "0.6.0"

Imports:

import sup._, sup.modules.redis._

What’s included

pingCheck

You can build a connection check out of a Ping algebra (included in RedisCommands). Let’s create one first:

import dev.profunktor.redis4cats.algebra.Ping, cats.effect._
// import dev.profunktor.redis4cats.algebra.Ping
// import cats.effect._

implicit def ping: Ping[IO] = ???
// ping: dev.profunktor.redis4cats.algebra.Ping[cats.effect.IO]

And now the health check:

def redisCheck = pingCheck[IO, Throwable]
// redisCheck: sup.HealthCheck[cats.effect.IO,cats.Id]

Errors are automatically recovered to a Sick status in this check.