#!/usr/bin/env ruby require "bundler/setup" require "redis/reconnect_with_readonly" require 'logger' logger = Logger.new(STDOUT) redis = Redis.new(host: 'localhost', port: '6380', logger: logger) redis.set('key', 'val')