Skip to content

Instantly share code, notes, and snippets.

@mdjaman
Forked from aslakhellesoy/del.txt
Created April 8, 2017 16:48
Show Gist options
  • Select an option

  • Save mdjaman/4970d7d63867ee591c8980cdf96b9244 to your computer and use it in GitHub Desktop.

Select an option

Save mdjaman/4970d7d63867ee591c8980cdf96b9244 to your computer and use it in GitHub Desktop.
Delete redis keys by wildcard
eval "return redis.call('del', unpack(redis.call('keys', 'foo.*')))" 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment