-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to clean redis all db? #2
Comments
@takanamito Have you tried configuring multiple connections with |
@etagwerker Thank you for your advice. I tried multiple connections config. I uses multiple redis db in rspec. Hosts:
And
I think that, If it's ok, I would like to send a patch adding options |
It looks like
database_cleaner[:redis]
clean only a selected db.https://github.com/DatabaseCleaner/database_cleaner/blob/f052d64d3be9351a98a99e932a59be528ccc561c/lib/database_cleaner/redis/truncation.rb#L10-L23
In my case, application uses multiple redis db.
So I'd prefer to use not
redis.flushdb
butredis.flushall
.Can I use
redis.flushall
in database_cleaner?The text was updated successfully, but these errors were encountered: