You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
16 lines
335 B
JavaScript
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();
|
|
});
|