Memcached

Memcached

Memcached Check validates connectivity to a Memcached instance.

Usage with Binary

./wait4it -type=memcached -h=127.0.0.1 -p=11211 -t=60

Usage with Docker

docker run ph4r5h4d/wait4it -type=memcached -h=127.0.0.1 -p=11211 -t=60

Environment Variables

VariableDescriptionDefault
W4IT_TYPEThe type of check (set to memcached for Memcached check).-
W4IT_TIMEOUTTimeout in seconds.30
W4IT_HOSTThe host to check.127.0.0.1
W4IT_PORTThe port to check on the Memcached host.11211

Command-Line Arguments

ArgumentDescriptionDefault
-typeThe type of check (set to memcached).-
-tTimeout in seconds.30
-hThe host to check.127.0.0.1
-pThe port to check on the Memcached host.11211

Notes

ℹ️
  • Environment variables override command-line arguments.
  • Currently, multiple hosts and cluster checks are not supported.

Exit Codes

CodeMeaning
0Connection successful.
1Timed out.
2Validation error or incorrect input.