-
Notifications
You must be signed in to change notification settings - Fork 127
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
connect to Redis using Unix Socket #76
Comments
We use the redis gem which supports a unix socket connection. Don't think we support that as an connection option but I think it would be pretty easy to do. Is this something you want to try and implement in a fork @fnkr? |
I'm not a Ruby programmer but as far as I see you just need to create the Ruby object with the
Maybe we check if # http://ruby-doc.org/core-1.9.3/File.html#ftype-method
if File.ftype(Redmon.config.redis_url) == 'socket'
@redis ||= ::Redis.connect(:path => Redmon.config.redis_url)
else
@redis ||= ::Redis.connect(:url => Redmon.config.redis_url)
end https://github.com/steelThread/redmon/blob/v0.0.10/lib/redmon/redis.rb#L18 |
The if statement will raise |
How do I connect to a Redis instance using a Unix Socket?
The text was updated successfully, but these errors were encountered: