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
Written by Ben
Related protips
1 Response
From Mike on twitter:
Sidekiq.redis { |r| puts r.flushdb }
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#