tedis icon indicating copy to clipboard operation
tedis copied to clipboard

[Question] How can i set de database number in my connection?

Open xdougx opened this issue 5 years ago • 1 comments

Hello, I'm starting with Tedis, but in configuration i can only pass: host and port

Is that possible to use full url? E.g: redis://127.0.0.10:6666/5

xdougx avatar Nov 12 '20 15:11 xdougx

Does not answer original question but, for anyone who finds themselves here looking to switch databases with Tedis, you can run the SELECT command manually:

https://tedis.silkjs.org/api/base.html#command

await tedis.command('SELECT', '1');

stevemoncada avatar Jul 19 '21 21:07 stevemoncada