Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (16 sloc) 503 Bytes
use strict;
use Test::More tests => 3;
use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;
my $filename = "/tmp/memcachetest$$";
my $server = new_memcached("-s $filename");
my $sock = $server->sock;
ok(-S $filename, "creating unix domain socket $filename");
# set foo (and should get it)
print $sock "set foo 0 0 6\r\nfooval\r\n";
is(scalar <$sock>, "STORED\r\n", "stored foo");
mem_get_is($sock, "foo", "fooval");
## Just some basic stuff for now...
Something went wrong with that request. Please try again.