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


You need to login to view comments.