guilleiguaran/fakeredis — pull request #34 by caius (2012-07-13 17:43:58+00:00)
Title: Track instances created

My motivation for doing this is it's more akin to how a live redis object being created works. Connect with the same set of options, get access to the same data in that process. For example, it means you can have multiple blocks of work (think workers processing a series of jobs), all creating new redis connections with the same options and sharing the same values left from the last job processed.

And also if you need to reset all those redis instances in one go, (like `fakeredis/rspec` for example) it's pretty simple now. Loop over the instances and call flushdb on each of them!