Sha256: 0d6e3e1e606c84327336cbf86155ed723fae2830da8371e54eb20e40f093a42d
Contents?: true
Size: 375 Bytes
Versions: 2
Compression:
Stored size: 375 Bytes
Contents
#!/usr/bin/env ruby require "bundler/setup" require "redis/reconnect_with_readonly" require 'logger' Redis::ReconnectWithReadonly.reconnect_attempts = 5 Redis::ReconnectWithReadonly.initial_retry_wait = 1 Redis::ReconnectWithReadonly.max_retry_wait = 3 logger = Logger.new(STDOUT) redis = Redis.new(host: 'localhost', port: '6380', logger: logger) redis.set('key', 'val')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redis-reconnect_with_readonly-0.9.1 | bin/try |
redis-reconnect_with_readonly-0.9.0 | bin/try |