If I execute this:
require 'redis' redis = Redis.new(:host => '22.214.171.124', :port => '6379' ) puts redis.inspect puts redis.ping
The output is:
#<Redis client v3.0.7 for redis://126.96.36.199:6379/0> PONG
All fine, no problems, but how can I use a combination of user and password to verify the valid credentials when a user try to connect to my server.??
I would appreciate a concrete example.