Sha256: 607669bdfc2d52fd73df265780428f11bd3cc7647b8715fe1860a00faf2b5ffd

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

module HAJ
  class Client


    # @param opts [Hash] Options to connect to the Redis database
    def initialize(opts = {})
      @pool = HAJ::Pool::Generic.new(opts)
    end

    def execute(method, *args)
      @pool.hold { |conn| conn.send(method, *args) }
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
haj-0.0.2 lib/haj/client.rb