def redis
      @redis ||= (
        url = URI(@redis_url || ENV['REDIS_URL'] || 'redis://127.0.0.1:6379/0')
        ::Redis.new(
          driver: (jruby? ? :ruby : :hiredis),
          host: url.host,
          port: url.port,
          db: url.path[1..-1],
          password: url.password)
      )
    end
def redis
      @redis ||= (
        url = URI(@redis_url || ENV['REDIS_URL'] || 'redis://127.0.0.1:6379/0')
        ::Redis.new(
          driver: (jruby? ? :ruby : :hiredis),
          host: url.host,
          port: url.port,
          db: url.path[1..-1],
          password: url.password)
      )
    end
Returns the current Redis connection. If none has been created, will
 create a new one.