Skip to content

Instantly share code, notes, and snippets.

@Saka7
Created February 28, 2019 14:30
Show Gist options
  • Save Saka7/f2213e7fd6c582fa7ebebb67f8c5ae28 to your computer and use it in GitHub Desktop.
Save Saka7/f2213e7fd6c582fa7ebebb67f8c5ae28 to your computer and use it in GitHub Desktop.
Remove redis keys by pattern
EVAL "return redis.call('del', unpack(redis.call('keys', ARGV[1])))" 0 pattern:*
@Saka7
Copy link
Author

Saka7 commented Feb 28, 2019

pattern:* - it's a pattern string

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