Sha256: 5c05d03a05bb244395374d8478186f187ea34fdbace2420947bd38f4928dffa1
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
require 'connection_pool' REDIS = ConnectionPool.new(size: 3) do if ENV['REDISTOGO_URL'] puts "---> using redis to go!" uri = URI.parse(ENV["REDISTOGO_URL"]) puts "---> parsed uri: #{uri}" Redis.new(:host => uri.host, :port => uri.port, :password => uri.password, :thread_safe => true) else puts "---> using default redis settings..." Redis.new end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metacosm-0.3.5 | lib/metacosm/redis.rb |