Skip to content

Instantly share code, notes, and snippets.

@lftbrts
Last active February 6, 2020 14:20
Show Gist options
  • Save lftbrts/81306021c0ccf68d2a68ecbcbeb2e397 to your computer and use it in GitHub Desktop.
Save lftbrts/81306021c0ccf68d2a68ecbcbeb2e397 to your computer and use it in GitHub Desktop.
redis | remove all keys by pattern immediatly
#!/usr/bin/env bash
redis-cli -n 0 -h localhost -p 10009 KEYS "kv:foo_baz:*" | xargs redis-cli -n 0 -p 10009 DEL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment