Redis deleting keys with prefix


/ Published in: Bash
Save to your folder(s)

Deletes all keys starting with prefix. Inspired by: http://stackoverflow.com/a/4006575


Copy this code and paste it in your HTML
  1. redis-cli keys prefix* | xargs redis-cli DEL

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.