Keys API
Purely functional interface for the Keys API.
key Commands usage
Once you have acquired a connection you can start using it:
import cats.effect.IO
val key = "users"
commandsApi.use { redis => // KeyCommands[IO, String]
for {
_ <- redis.del(key)
_ <- redis.exists(key)
_ <- redis.expire(key, Duration(5, SECONDS))
} yield ()
}