来自应用程序的 Redis 健康检查

Redis healthcheck from application

从应用程序对 Redis 进行健康检查的正确方法是什么? 是否有 sql 的类似物:SELECT 1;?

有一个PING命令。引用自 redis 文档

This command is often used to test if a connection is still alive, or to measure latency.