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
# delete keys | |
redis-cli --scan --pattern users:* | xargs redis-cli unlink | |
# expire keys after 600 seconds | |
redis-cli --scan --pattern users:* | xargs -L1 -I{} redis-cli expire {} 600 |
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
sudo su - |