目录
groovy 清理redis-cluster
def redisClusterIp="192.168.58.134"
def redisClusterPort=['7000','7001','7002']
def flushredisdb(redisClusterIp,redisClusterPort) {
for (redisPort in redisClusterPort) {
sh """
redis-cli -c -h ${redisClusterIp} -p ${redisPort} flushdb;
"""
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/289698.html