node.js - direct (non-tcp) connection to redis from nodejs -
hello all
looked @ at redis-node-client source (relevant part shown bellow) , see connects redis via 'net' package, tcp based.
line 370
exports.createclient = function (port, host, options) { var port = port || exports.default_port; var host = host || exports.default_host; var client = new client(net.createconnection(port, host), options); client.port = port; client.host = host; return client; };
i wondering if there's more direct client redis, preferably via domain-sockets or of sort. im using redis localy, cache, without going on wire unnecessary encode/decode messages tcp headers...
thank you
unix domain socket support appears have landed in redis of nov 4th.
http://code.google.com/p/redis/issues/detail?id=231
to connect unix domain socket, need supply pathname net.createconnection. maybe in redis-node-client:
exports.createsocketclient = function (path, options) { var client = new client(net.createconnection(path), options); client.path = path; return client; };
Comments
Post a Comment