Sha256: 4aeaf79d9ef3ec912135b0d901d52d23d79411781460ee567e95d6be6d4cfa01
Contents?: true
Size: 500 Bytes
Versions: 4
Compression:
Stored size: 500 Bytes
Contents
require File.expand_path("../lib/redic", File.dirname(__FILE__)) setup do Redic.new("unix:///tmp/redis.sock") end test "normal commands" do |c| c.call("SET", "foo", "bar") assert_equal "bar", c.call("GET", "foo") end test "pipelining" do |c| c.queue("SET", "foo", "bar") c.queue("GET", "foo") assert_equal ["OK", "bar"], c.commit end test "multi/exec" do |c| c.queue("MULTI") c.queue("SET", "foo", "bar") c.queue("EXEC") assert_equal ["OK", "QUEUED", ["OK"]], c.commit end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
redic-0.0.8 | tests/unix_test.rb |
redic-0.0.7 | tests/unix_test.rb |
redic-0.0.6 | tests/unix_test.rb |
redic-0.0.5 | tests/unix_test.rb |