Skip to content

Instantly share code, notes, and snippets.

@nyctef
Created April 22, 2017 22:19
Show Gist options
  • Save nyctef/8bfd85bd842aae6d645917ed8b7dcf8a to your computer and use it in GitHub Desktop.
Save nyctef/8bfd85bd842aae6d645917ed8b7dcf8a to your computer and use it in GitHub Desktop.
mass-delete redis keys
# courtesy of http://stackoverflow.com/questions/4006324/how-to-atomically-delete-keys-matching-a-pattern-using-redis
EVAL "for _,k in ipairs(redis.call('keys', 'seq*')) do redis.call('del', k) end" 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment