Instantly share code, notes, and snippets.
$ redis-cli -h <redis host> -p <port> info | grep role role: master