Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (14 sloc) 0.39 kb
# 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
Jump to Line
Something went wrong with that request. Please try again.