Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not doing GAT for now since I'd have to iterate through gat/gats/multigat/etc. If there's demand, we can add it.
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/perl | ||
|
||
use strict; | ||
use Test::More tests => 4; | ||
use FindBin qw($Bin); | ||
use lib "$Bin/lib"; | ||
use MemcachedTest; | ||
|
||
|
||
my $server = new_memcached(); | ||
my $sock = $server->sock; | ||
|
||
# set foo (and should get it) | ||
print $sock "set foo 0 2 6\r\nfooval\r\n"; | ||
is(scalar <$sock>, "STORED\r\n", "stored foo"); | ||
mem_get_is($sock, "foo", "fooval"); | ||
|
||
# touch it | ||
print $sock "touch foo 10\r\n"; | ||
is(scalar <$sock>, "TOUCHED\r\n", "touched foo"); | ||
|
||
sleep 2; | ||
mem_get_is($sock, "foo", "fooval"); |