Skip to content

Instantly share code, notes, and snippets.

@mattes
Created January 21, 2020 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattes/efd5744cfe44e139ab1b6aad94bbf530 to your computer and use it in GitHub Desktop.
Save mattes/efd5744cfe44e139ab1b6aad94bbf530 to your computer and use it in GitHub Desktop.
delete redis keys in bulk with pattern
eval "for i, name in ipairs(redis.call('KEYS', 'pattern-*')) do redis.call('DEL', name); end" 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment