moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 508 forks source link

enable redis connection via unix domain socket instead of tcp #665

Open eddy03 opened 7 years ago

eddy03 commented 7 years ago

Thx for great library.

atm, there seems no possibility to use unix domain socket instead of tcp socket to connect to redis.

due to speed issues, that'd be a great benefit

mcollina commented 7 years ago

@eddy03 this uses ioredis, so it should be already possible, but maybe we need a new option. Can you have a look and maybe send a PR?

https://github.com/luin/ioredis#connect-to-redis

pelicarno commented 6 years ago

You can use the "path" option to setup redis to connect to a unix socket