redis-store/redis-store — pull request #225 by jacobvosmaer (2014-06-20 11:56:44+00:00)
Title: Use batched deletes for flushdb with a namespace

If you have a lot (e.g. 300_000) of keys in a namespace,
Redis::Store#flushdb will abort with an exception:

SystemStackError: stack level too deep

This patch addresses that issue by deleting the namespaced keys in
batches of 1000.