mperham/dalli — pull request #231 by alevy (2012-06-25 18:25:35+00:00)
Title: Swap priority of servers argument

Currently MEMCACHE_SERVERS environment variable is used over a passed in, explicit servers argument to the client. Because this disagrees with the priority for username and password, this causes hard to debug problems when environment variables are set *and* explicit options are passed in (but the two are not the same). Specifically, Dalii will choose the server from the environment but the username and password from the options.

The change is a simple one liner swapping the environment variables and option when setting the server instance variable. If there is a more appropriate solution I'd be happy to revise.

Thanks!