go-redis
go-redis copied to clipboard
UniversalClient and Unix Sockets
Is it possible for UniversalOptions to support the Options.Network setting? My application has a config file where the user can specify a single redis server (through either tcp or unix sockets), or a redis cluster to talk to. Currently this makes it hard to use UniversalClient because it doesn't support Options.Network, not even when we're using a single redis server.
client := redis.NewUniversalClient(&redis.UniversalOptions{
Addrs: ...,
Dialer: func(ctx context.Context, network, addr string) (net.Conn, error) {
....
},
})
This issue is marked stale. It will be closed in 30 days if it is not updated.