-
Couldn't load subscription status.
- Fork 112
Allow Redis Connection to be Injected #189
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
base: master
Are you sure you want to change the base?
Conversation
3a26c63 to
372025d
Compare
See issue jekyll#188 for details. Prior to this change, pooled redis connections were hard to share across. Now you can inject your own redis connection into the intiailizer via the `redis_conn` parameter.
372025d to
bf82c5c
Compare
|
@ashmaroli friendly ping - does all look ok here? |
|
Sorry. This had slipped out of my radar.. |
|
+1 for this |
| end | ||
|
|
||
| @redis = Redis.new(options) | ||
| @redis = options.fetch(:redis_conn, Redis.new(options)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor point but my preference for the argument name would just be redis.
| @redis = options.fetch(:redis_conn, Redis.new(options)) | |
| @redis = options.fetch(:redis, Redis.new(options)) |
See issue #188 for details.
Prior to this change, pooled redis connections were hard to share across jobs.
Now you can inject your own redis connection into the intiailizer via
the
redis_connparameter.