Search code examples
redishealth-check

Redis healthcheck from application


What is the proper way to healthcheck Redis from application? Is there any analogue of sql: SELECT 1;?


Solution

  • There is a PING command. Quoting from the redis documentation

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