Sha256: e19983055bfbe9a4a3879f6c859e6e6555b1e4b0e06bde6615ad2357f6a2cfd3
Contents?: true
Size: 489 Bytes
Versions: 6
Compression:
Stored size: 489 Bytes
Contents
require "cutest" require_relative "../lib/redic" setup do Redic.new("unix:///tmp/redis.6379.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
6 entries across 6 versions & 2 rubygems