我有一个简单的例子:
for ( i in dbs ) {
var db = dbs[i].split(':')
var port = dbs[i][0]
var host = dbs[i][0]
var client = redis.createClient( port, host )
tasks = [ [ "info" ] ]
client.multi(tasks).exec(function (err, replies ) {
console.log(port)
})
如何打印每个客户端连接的正确端口?