Redis deleting keys with prefix

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

Deletes all keys starting with prefix. Inspired by:

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

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.