Skip to content

Instantly share code, notes, and snippets.

@DominicWatts
Created April 6, 2023 10:25
Show Gist options
  • Select an option

  • Save DominicWatts/b8c1df68ddfd874a19d1ff4c7b8008e6 to your computer and use it in GitHub Desktop.

Select an option

Save DominicWatts/b8c1df68ddfd874a19d1ff4c7b8008e6 to your computer and use it in GitHub Desktop.
Server : REDIS cheatsheet #server

Check Running Instances

ps awux | grep redis

Redis Status

redis-cli -h 127.0.0.1 -p 6379 info

Flush Single Database

redis-cli -h 127.0.0.1 -p 6379 -n 0 flushdb

Flush All Databases

redis-cli -h 127.0.0.1 -p 6379 flushall

Monitor Redis

redis-cli -h 127.0.0.1 -p 6379 monitor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment