Last active
March 1, 2022 06:14
-
-
Save yusufhm/360380799ef93ae5575e1360decbb4f8 to your computer and use it in GitHub Desktop.
redis commands
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
# Get info. | |
redis-cli INFO | |
# DB size. | |
redis-cli DBSIZE | |
# Get real-time stats. | |
redis-cli --stat | |
# Monitor. | |
redis-cli MONITOR | |
# Get list of all keys. | |
redis-cli --scan --pattern '*' | |
# Get list of keys by pattern. | |
redis-cli --scan --pattern laravel_database_* | |
# Delete list of keys by pattern. | |
redis-cli --scan --pattern laravel_database_* | xargs redis-cli unlink |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment