Sha256: 966c70b8f7b0f403e29e9dabfc51ff7aa0a04d99d6e11863724b639eefacfcd1
Contents?: true
Size: 549 Bytes
Versions: 34
Compression:
Stored size: 549 Bytes
Contents
#!/usr/bin/env ruby require 'eventmachine' # the redis/synchrony gems need to be required in this particular order, see # the redis-rb README for details require 'hiredis' require 'em-synchrony' require 'redis/connection/synchrony' require 'redis' require 'em-synchrony/connection_pool' module Flapjack class RedisPool < EventMachine::Synchrony::ConnectionPool def initialize(opts = {}) config = opts.delete(:config) @size = opts[:size] || 5 super(:size => @size) { ::Redis.new(config) } end end end
Version data entries
34 entries across 34 versions & 1 rubygems