Last active
August 17, 2020 20:23
-
-
Save gustavoapolinario/31d4c7a167b8db8114a561619172853e to your computer and use it in GitHub Desktop.
Redis commands sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ./$me.sh KEY_NAME | |
docker exec -it redis bash -c "echo 'HGETALL $1' | redis-cli" | |
#docker run --rm redis bash -c "echo 'HGETALL $1' | redis-cli" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker exec -it redis bash -c "echo 'keys *' | redis-cli" | |
#docker run --rm redis bash -c "echo 'keys *' | redis-cli -h host-redis | wc -l" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment