Skip to content

Instantly share code, notes, and snippets.

@vyspiansky
Created January 31, 2023 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vyspiansky/d695e16f5ecea2fe2bdf8dea17d84a4e to your computer and use it in GitHub Desktop.
Save vyspiansky/d695e16f5ecea2fe2bdf8dea17d84a4e to your computer and use it in GitHub Desktop.
Redis command line interface

Go to Redis command line interface

redis-cli -h 127.0.0.1 -p 6379

Info and stats about the server

127.0.0.1:6379> INFO
127.0.0.1:6379> INFO Keyspace

Retrieve all existing keys:

127.0.0.1:6379> KEYS *

Retrieve value by key

redis> MGET <key>

Deletes all keys from all databases

127.0.0.1:6379> FLUSHALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment