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