Sha256: 48b51c78c9ce57a4eda082a48de02a54f2575efb63ade4a6c0be98769eaf1e5f

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

require 'riak/client'
require 'riak/bucket'
require 'riak/multi'

module Riak
  # Coordinates a parallel fetch operation for multiple keys.
  class Multiget < Multi
    # @deprecated use perform
    class << self
      alias_method :get_all, :perform
    end

    private

    def work(bucket, key)
      bucket[key]
    rescue Riak::FailedRequest => e
      raise e unless e.not_found?
      nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
riak-client-2.6.0 lib/riak/multiget.rb