disqus / nydus

Nydus is a Python toolkit for managing database connections and routing operations, primarily for Redis
Apache License 2.0
380 stars 38 forks source link

Enable use of unix_socket_path feature #10

Closed patricklucas closed 12 years ago

patricklucas commented 12 years ago

Specify 'unix_socket_path' as a configuration option for a host to by unix socket rather than TCP.

This change simply adds unix_socket_path as a redis configuration option and passes it on to redis-py, which will only use its value (and ignore host/port) if it is specified. (so forwarding the option is sufficient, nydus doesn't need logic to decide whether to send the option)