Skip to content

Conversation

dhh
Copy link
Member

@dhh dhh commented Dec 27, 2023

We don't actually need a config in most basic cases. We can just connect to what's in REDIS_URL or a default of redis://127.0.0.1:6379/0.

@dhh dhh merged commit 2c7f41f into main Dec 27, 2023
@dhh dhh deleted the use-default-redis-url branch December 27, 2023 05:32
jeremy pushed a commit that referenced this pull request Mar 5, 2024
This fixes an unexpected NoMethodError that experimenting through `bin/console` causes:

```
irb(main):001> Kredis.string "mystring"

/rails/kredis/lib/kredis/connections.rb:15:in `block in configured_for': undefined method `root' for an instance of #<Class:0x0000000108091a60> (NoMethodError)

      if configurator.root.join("config/redis/#{name}.yml").exist?
                     ^^^^^
```

This is a follow-up to #135.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant