Skip to content

Instantly share code, notes, and snippets.

@Alex-Just
Created December 7, 2019 11:34
Show Gist options
  • Save Alex-Just/42c931c3856227b5252a42fb14b91800 to your computer and use it in GitHub Desktop.
Save Alex-Just/42c931c3856227b5252a42fb14b91800 to your computer and use it in GitHub Desktop.
# Get all keys from the DB
redis-cli -n 8 --scan
# Get all keys and values from the DB
echo 'keys *' | redis-cli -n 8 | sed 's/^/get \"/' | sed 's/$/\" /' | redis-cli -n 8 | jq .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment