编写以下groovy脚本代码: 导入redis.clients.jedis.jedis
jedis jedis=新jedis(“主机”)。 jedis.connect()。 jedis.flushdb()。
运行脚本