Answers for "localhost redis"

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
1

redis cache start

sudo /etc/init.d/redis_6379 start
Posted by: Guest on February-20-2020

Browse Popular Code Answers by Language