Sha256: 547576636443a1a141e7cf30aeec5c7434cd7c3c58e7220b4f7cdb5222a9b7a0
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
class SSDB::Batch < Array # Constructor def initialize @futures = [] super end # Call command # @param [Hash] opts the command options def call(opts) push(opts) future = SSDB::Future.new(opts[:cmd]) @futures.push(future) future end # @param [Array] values def values=(values) values.each_with_index do |value, index| future = @futures[index] future.value = value if future end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ssdb-0.1.0 | lib/ssdb/batch.rb |