Sha256: c59f352cf2d88d9082c4960dc6d8b1547aed018a43eb1ea527a2b451cb87e383
Contents?: true
Size: 390 Bytes
Versions: 2
Compression:
Stored size: 390 Bytes
Contents
# encoding: UTF-8 require File.expand_path("./helper", File.dirname(__FILE__)) setup do init Redis.new(OPTIONS) end load './test/lint/hashes.rb' test "Mapped HMGET in a pipeline returns hash" do |r| r.hset("foo", "f1", "s1") r.hset("foo", "f2", "s2") result = r.pipelined do r.mapped_hmget("foo", "f1", "f2") end assert result[0] == { "f1" => "s1", "f2" => "s2" } end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
gorsuch-redis-3.0.0.rc1 | test/commands_on_hashes_test.rb |
redis-3.0.0.rc1 | test/commands_on_hashes_test.rb |