Skip to content

Instantly share code, notes, and snippets.

@swelham
Last active August 2, 2017 09:13
Show Gist options
  • Save swelham/dda93229b452a6dfe30139e48d55c9c2 to your computer and use it in GitHub Desktop.
Save swelham/dda93229b452a6dfe30139e48d55c9c2 to your computer and use it in GitHub Desktop.
Flush redis keys containing value
redis-cli EVAL "for i, name in ipairs(redis.call('KEYS', '*SOME_VALUE*')) 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