Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
botandrose authored Feb 8, 2021
1 parent fe84e5e commit 1803fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ The redis adapter only has one strategy: the deletion strategy.

```ruby
# Only delete the "users" key, and keys that start with "cache".
DatabaseCleaner[:redis].strategy = :deletion, { only: ["users", "cache*"] }
DatabaseCleaner[:redis].strategy = :deletion, only: ["users", "cache*"]

# Delete all keys except the "users" key.
DatabaseCleaner[:redis].strategy = :deletion, { except: ["users"] }
DatabaseCleaner[:redis].strategy = :deletion, except: ["users"]
```

## Adapter configuration options
Expand Down

0 comments on commit 1803fbe

Please sign in to comment.