Skip to content

Instantly share code, notes, and snippets.

@jcefoli
Created October 25, 2017 17:19
Show Gist options
  • Save jcefoli/f1670ba685c5ad3611e4c1919cad7e1f to your computer and use it in GitHub Desktop.
Save jcefoli/f1670ba685c5ad3611e4c1919cad7e1f to your computer and use it in GitHub Desktop.
Redis: Delete Keys via Wildcard Pattern (Lua commandlet)
EVAL "for i, name in ipairs(redis.call('KEYS', '*YOUR_PATTERN_HERE*')) do redis.call('DEL', name, 0); end" 0
@herkyl
Copy link

herkyl commented Jun 4, 2018

Worked like a charm 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment