gefcig
Last Updated: August 09, 2017
·
3.681K
· bugthing
E91862886e57efd97bd410d35c0a3198

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 
Say Thanks
Respond

1 Response
Add your response

29182
71ee1809f53df0a2b4dac0530f630933

From Mike on twitter:

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

https://twitter.com/mperham/status/895377361922777088

28 days ago ·