redis.rb 170 B

1234567
  1. # frozen_string_literal: true
  2. Redis.current = Redis.new(
  3. host: ENV.fetch('REDIS_HOST') { 'localhost' },
  4. port: ENV.fetch('REDIS_PORT') { 6379 },
  5. driver: :hiredis
  6. )