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
# 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