Skip to content

How to clean redis all db? #2

@takanamito

Description

@takanamito

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 but redis.flushall.

Can I use redis.flushall in database_cleaner?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions