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

Alias _client to client in 3.3.x for smoother transition to 4.0 #654

Closed
djanowski opened this issue Nov 24, 2016 · 2 comments
Closed

Alias _client to client in 3.3.x for smoother transition to 4.0 #654

djanowski opened this issue Nov 24, 2016 · 2 comments

Comments

@djanowski
Copy link
Collaborator

sidekiq/sidekiq#3256 (comment)

@mperham
Copy link
Contributor

mperham commented Nov 24, 2016

FYI, I use the client to get access to id attribute, so I can show the URL of the server:

    def redis_connection
      Sidekiq.redis { |conn| conn.client.id }
    end

If there's a better way to get access to this in 3.3.3+, I'm listening.

mperham added a commit to mperham/redis-rb that referenced this issue Jan 2, 2017
Add _client alias for easier migration to Redis-rb 4.0.
@djanowski
Copy link
Collaborator Author

3.3.4 and 4.0.1 include Redis#connection.

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