Ruben Bridgewater
9 years ago
8 changed files with 37 additions and 33 deletions
@ -1,12 +1,14 @@ |
|||
var redis = require("../") |
|||
'use strict'; |
|||
|
|||
var redis = require("../"); |
|||
//redis.debug_mode = true
|
|||
var PORT = process.argv[2] || 6379; |
|||
var HOST = process.argv[3] || '127.0.0.1'; |
|||
|
|||
var c = redis.createClient(PORT, HOST) |
|||
c.unref() |
|||
var c = redis.createClient(PORT, HOST); |
|||
c.unref(); |
|||
c.info(function (err, reply) { |
|||
if (err) process.exit(-1) |
|||
if (!reply.length) process.exit(-1) |
|||
process.stdout.write(reply.length.toString()) |
|||
}) |
|||
if (err) process.exit(-1); |
|||
if (!reply.length) process.exit(-1); |
|||
process.stdout.write(reply.length.toString()); |
|||
}); |
|||
|
Loading…
Reference in new issue