Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 20 lines (17 sloc) 0.505 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/usr/bin/perl

use strict;
use Test::More tests => 996;
use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;

my $server = new_memcached();
my $sock = $server->sock;

for (my $keyi = 1; $keyi < 250; $keyi++) {
    my $key = "x" x $keyi;
    print $sock "set $key 0 0 1\r\n9\r\n";
    is (scalar <$sock>, "STORED\r\n", "stored $key");
    mem_get_is($sock, $key, "9");
    print $sock "incr $key 1\r\n";
    is (scalar <$sock>, "10\r\n", "incr $key to 10");
    mem_get_is($sock, $key, "10");
}
Something went wrong with that request. Please try again.