打开redis客户端: ./redis-cli -p 1234
清除所有KEY
eval "local keys = redis.call('keys', '*') for _, key in pairs(keys) do redis.call('DEL', key) end return 'ok'" 0
//返回ok即表示清除成功
打开redis客户端: ./redis-cli -p 1234
eval "local keys = redis.call('keys', '*') for _, key in pairs(keys) do redis.call('DEL', key) end return 'ok'" 0
//返回ok即表示清除成功