class SimpleConnection

Wraps pool and proxies every method to checked out connection. Similar to Wrapper, but works on existing pool.

Public Class Methods

new(pool) click to toggle source
# File lib/pooled_redis.rb, line 17
def initialize(pool)
  @pool = pool
end

Private Instance Methods

method_missing(name, *args, &block) click to toggle source
# File lib/pooled_redis.rb, line 23
def method_missing(name, *args, &block)
  @pool.with { |x| x.send name, *args, &block }
end
respond_to_missing?(name, include_all = false) click to toggle source
# File lib/pooled_redis.rb, line 27
def respond_to_missing?(name, include_all = false)
  @pool.with { |x| x.respond_to?(name, include_all) }
end