Redis implements clustering using sentinel.
Read more on sentinel - http://redis.io/topics/sentinel
Connect to the redis instance using redis-cli -h hostname -p port
from terminal.
Run KEYS *
command to get all the keys on that Redis instance.
KEYS
command takes regex as the argument (* for all).
If you are trying to access it from code .. there are various modules available. I have tried using node-redis, for Node Js.
However on production I don't recommend you to use KEYS
command as it takes a considerable time for millions on keys, rather use SCAN
command to scan a number of keys its syntax is SCAN CURSOR MATCH match COUNT count
.. eg SCAN 0 MATCH * COUNT 10000
..initially the cursor is taken as 0 as the iteration for further keys is stopped when the cursor returned is 0.