Skip to content
Advertisement

How to pass ipv6 address in Redis connection

I am using Redisclient as following.

JavaScript

But it gives error as “Host name cannot be null”.

What is wrong in above code?

Advertisement

Answer

It needed square brackets around ipv6 address as following.

JavaScript
Advertisement