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

Add support for connection_pool gem #215

Merged
merged 3 commits into from
Oct 27, 2022

Conversation

danila
Copy link
Contributor

@danila danila commented Oct 26, 2022

Adding support for @mperham's connection_pool, in order to make gems compatible without the need to rely on method_missing that is used in wrapper.

This PR was influenced by #135. Unfortunately we can't rely on respond_to?(:with) anymore, as this method was introduced to redis-rb gem here, so we gotta check class name.

@danila danila force-pushed the connection-pool-support branch 2 times, most recently from 616adba to 7d5ff5b Compare October 26, 2022 11:43
Copy link
Contributor

@iloveitaly iloveitaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome contribution! A couple questions + improvements before i merge this in.

lib/redis/namespace.rb Outdated Show resolved Hide resolved
lib/redis/namespace.rb Outdated Show resolved Hide resolved
spec/redis_spec.rb Show resolved Hide resolved
@danila
Copy link
Contributor Author

danila commented Oct 27, 2022

Hey, @iloveitaly thank you for the fastest response! Indeed the initial approach was dirty so I refactored it a bit and extended the specs.

@iloveitaly iloveitaly merged commit f7094ed into resque:master Oct 27, 2022
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

Successfully merging this pull request may close these issues.

2 participants