https://blog.csdn.net/niucsd/article/details/55516928
windows下:
redis-cli eval "local keys = redis.call(‘keys‘, ARGV[1]) for i=1,#keys,5000 do redis.call(‘del‘, unpack(keys, i, math.min(i+4999, #keys))) end return #keys" 0 ‘value*‘
linux下:
redis-cli keys "*" | xargs redis-cli del
原文:https://www.cnblogs.com/yangweixin/p/14725804.html