ioredis icon indicating copy to clipboard operation
ioredis copied to clipboard

Connection URL support for Cluster constructor

Open onichandame opened this issue 3 years ago • 2 comments

Problem

Currently the Cluster constructor cannot take a url string as input. Therefore the user has to manually parse a url string obtained from the runtime environment into a structured argument which the ioredis.Cluster understands.

Desired Behaviour

It would save a lot of repetitive and error-prone work if the library itself takes care of the parsing.

onichandame avatar Mar 04 '22 04:03 onichandame

The only blocker I can think of for this is to find a URI spec for multi-endpoint.

luin avatar Mar 16 '22 07:03 luin

@luin I believe a single endpoint url can be used to access a cluster. Multi-endpoint url spec and url parsing for cluster are related but not entirely overlapping.

onichandame avatar Mar 16 '22 12:03 onichandame