ServiceStack/ServiceStack.Redis — pull request #40 by cbarbara (2012-05-10 05:01:33+00:00)
Title: A faster way to put clients back in the pool

These are two specific methods for client disposal, they avoid having to needlessly loop over a every single clients in the pool.
We've found that when you have a large number of read clients, we did not want to have to loop through all the read clients every time we want to put a write client back in the pool.

Another solution we considered was hashing each client Id to quickly know if it was a read or write client, and then just looking up the hash inside of DisposeClient method. But went with this one for simplicity sake, and it required less changes.