Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9c45b7d610
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 0.447 kb
use v6;
BEGIN { @*INC.push('t', 'lib') };
use Redis;
use Test;
use Test::SpawnRedisServer;
my $r = Redis.new(decode_response => True);
$r.connect;
$r.flushall;
plan 5;
# multi->...->exec
is_deeply $r.multi(), True;
$r.set("key", "value");
$r.set("key2", "value2");
is_deeply $r.exec(), ["OK", "OK"];
# multi->...->discard
is_deeply $r.multi(), True;
$r.set("key2", "value3");
is_deeply $r.discard(), True;
is_deeply $r.get("key2"), "value2";
Jump to Line
Something went wrong with that request. Please try again.