1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/examples/unix_socket.js
2010-12-01 22:36:14 -08:00

16 lines
335 B
JavaScript

var redis = require("redis"),
client = redis.createClient("/tmp/redis.sock");
client.on("connect", function () {
console.log("Got Unix socket connection.")
});
client.on("error", function (err) {
console.log(err.message);
});
client.info(function (err, reply) {
console.log(reply.toString());
client.quit();
});