Created
May 23, 2019 19:09
-
-
Save Estivales/aa1233d134c7ac9f836700a1d67a243a to your computer and use it in GitHub Desktop.
Bulk delete on REDIS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EVAL "local keys = redis.call('keys', ARGV[1]) \n for i=1,#keys,5000 do \n redis.call('del', unpack(keys, i, math.min(i+4999, #keys))) \n end \n return keys" 0 prefix:* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment