GaTechThomas
GaTechThomas

Reputation: 6113

StackExchange Redis ConnectionString

What is the full format of the ConnectionString used in StackExchange.Redis?

I have searched but cannot find documentation for it.

Upvotes: 8

Views: 24044

Answers (2)

Marc Gravell
Marc Gravell

Reputation: 1063944

If in doubt, use the ConfigurationOptions class (which has properties etc) and ToString() it when you are ready to obtain the configuration-string. However, I suspect you are looking for this

Upvotes: 7

Michael Cole
Michael Cole

Reputation: 16257

Update. The 'correct' answer links to crazy documentation.

There doesn't seem to be a connect string...

var client = redis.createClient(9000); // Open a port on localhost
var client = redis.createClient('/tmp/redis.sock'); // Open a unix socket
var client = redis.createClient(9000, 'example.com'); 

This, and options are documented on the README.

Upvotes: 1

Related Questions