Answers for "redis-cli remote host"

0

redis cli connect to remote server with password

$redis-cli -h 127.0.0.1 -p 6379 -a mysupersecretpassword
Posted by: Guest on February-08-2021
0

redis localhost url

if Rails.env.production?
  puts "production: #{ENV['REDIS_URL']}"
  uri = URI.parse(ENV["REDIS_URL"])
else
  puts "not production"
  uri = URI.parse("redis://localhost:6379")
end
Posted by: Guest on October-24-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language