Skip to content
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 only clean redis 'test' namespace? #5

Open
oma opened this issue Sep 18, 2014 · 1 comment
Open

how to only clean redis 'test' namespace? #5

oma opened this issue Sep 18, 2014 · 1 comment

Comments

@oma
Copy link

oma commented Sep 18, 2014

It looks like databasecleaner redis clean ignores namespace.

I'd prefer i to cleanup the 'test' namespace. Now it cleans up all it appears, causing troubles in dev env. My workaround is setting up two redis servers. I might be misunderstanding something though, thanks for enlightening me!

@ivannavarrete
Copy link

DatabaseCleaner[:redis].strategy = :truncation, { only: ["test:*"] }

@botandrose botandrose transferred this issue from DatabaseCleaner/database_cleaner Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants