4
use Test::More tests => 4;
10
my $server = new_memcached();
11
my $sock = $server->sock;
13
# set foo (and should get it)
14
print $sock "set foo 0 2 6\r\nfooval\r\n";
15
is(scalar <$sock>, "STORED\r\n", "stored foo");
16
mem_get_is($sock, "foo", "fooval");
19
print $sock "touch foo 10\r\n";
20
is(scalar <$sock>, "TOUCHED\r\n", "touched foo");
23
mem_get_is($sock, "foo", "fooval");