Last Updated: September 01, 2018
· bugthing

Flush Sidekiq's Redis DB

Use Sidekiq? ... got your Redis db in a pickle after screwing about with tests?

This is most simple way I have found to reset the Redis db from the rails console

Sidekiq.redis { |r| puts r.flushall }

Could use the following, but found it sometimes does not clear all batch related stuff (from sidekiq-pro)

rake sidekiq:clear 

1 Response
Add your response


From Mike on twitter:

Sidekiq.redis { |r| puts r.flushdb }

over 1 year ago ·