Answers for "redis localhost url"

2

check that redis is running

$ redis-cli ping
PONG
Posted by: Guest on September-13-2020
1

start redis server

$ redis-server
Posted by: Guest on November-10-2020
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

Browse Popular Code Answers by Language