Disclaimer: I am a consultant at Amazon Web Services, and this is my personal blog. The opinions expressed here are solely mine and do not reflect the views of Amazon Web Services (AWS). Any statements made should not be considered official endorsements or statements by AWS.
If you are using Redis-CLI & want to get all keys in Redis, then you can use below command in Command Prompt. This will return all available keys in Redis Data Store.
KEYS *
Step 1: Open command prompt, type redis-cli KEYS *
like below & hit enter.
Step 2: See result below:
Now, suppose we want to get a specific key from Redis then we use below commands:
To get key by specific key-name, use command redis-cli KEYS KeyName
. See example below:
To get keys that starts with particular text, use command redis-cli KEYS StartingText*
. This will return all keys that starts with text StartingText. See example below: