ioredis
ioredis copied to clipboard
Passing path in options throws Error: connect ENOENT
Trying to connect to a redis instance using path param in options fails with ENOENT error, while initializing ioredis with path works.
import Redis from 'ioredis';
new Redis('redis://127.0.0.1:6379') // Works
new Redis({ path: 'redis://127.0.0.1:6379' }) // Error: connect ENOENT
Can I work on this?
@deepam-kapur you can as far as I'm concerned. But I'm not really a maintainer.
path needs to be passed with a unix socket so should look like a file path.
@luin providing a socket instead of url would only work for localhost connections, which I only used here as an example.
I have this problem, too. How are we supposed to initialize with a url?