harthur/brain — pull request #11 by timruffles (2012-02-12 22:20:18+00:00)
Title: Support redis authentication, and be less prolific with connections

Hi, thought I'd get your opinion on these two as there might be a good reason for the current implementation.

First: support redis auth.

Second: reuse a single redis client for as long as the process lasts. My redistogo instance's limit on connections made using a client per BayesianClassifier untenable. Keeping one client alive for all queries allowed me to do a lot of classification for different users (going to different keys) without connection overhead and hitting the max connection limit.

Let me know, and thanks for the great library :)