Skip to content

Instantly share code, notes, and snippets.

@Masa331
Last active March 8, 2017 04:21
Show Gist options
  • Save Masa331/fa9efa580647fbefa59f to your computer and use it in GitHub Desktop.
Save Masa331/fa9efa580647fbefa59f to your computer and use it in GitHub Desktop.
Basic redis commands

Basic Redis commands

CLI

redis-cli

Basic CLI commands

  • info keyspace

  • keys * for all keys

  • type <KEY> to get key type

  • get <KEY> to get key value(not for set)

  • smembers <SET> to get set members

  • flushdb to purge current database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment