Sha256: 9737a42cfd96f6b38b8a7a75dfbcb0cb059bb11b4e82fedbd1f2b482c0999668

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

safe_require 'ohm', 'gem install ohm'

##
# Midori Extension of ohm through meta programming Redic
class Redic
  # Call a redis request asynchronously
  # @param [Array] args args of Redic.call
  def call(*args)
    await(defer{
      @client.connect do
        @client.write(args)
        @client.read
      end
    })
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
em-midori-0.1.8 lib/midori/extension/ohm.rb