Skip to content

Instantly share code, notes, and snippets.

@vincent178
Created April 4, 2014 02:19
Show Gist options
  • Save vincent178/9966886 to your computer and use it in GitHub Desktop.
Save vincent178/9966886 to your computer and use it in GitHub Desktop.
#redis

KEYS * type

FLUSHDB and FLUSHALL FLUSHDB deletes all keys in the current databases FLUSHALL deletes all keys in all databases clear redis database

redis-cli KEYS soulmate-* | xargs redis-cli DEL

zrevrange soulmate-index:normalized_school:uni 0 -1

hmget soulmate-data:normalized_school NSM3H470D45C0T12Y5V

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