Created
October 11, 2017 04:53
-
-
Save gwsu2008/fd5dca74f422ca61f4a463bd45bd94b9 to your computer and use it in GitHub Desktop.
redis-commands
This file contains 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
#!/bin/bash +x | |
/usr/local/bin/redis-cli flushall | |
/usr/local/bin/redis-cli bgsave | |
/usr/local/bin/redis-cli KEYS \* | |
/usr/local/bin/redis-cli SHUTDOWN SAVE | |
/usr/local/bin/redis-cli KEYS \* > /tmp/redis-queue.log | |
/usr/local/bin/redis-cli flushall | |
./redis-cli bgsave | |
/usr/local/bin/redis-cli KEYS \* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment