summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2011-09-28 17:04:48 -0700
committerdormando <dormando@rydia.net>2011-09-28 17:04:48 -0700
commit839949a9951bf54917eab8c6c1c5b2b8e2468e17 (patch)
tree19822422f3169af007aa4af3dfc871107cb75365 /t
parent1db1de38283fdd3f5cdc556ac9ca9cb05892a75d (diff)
downloadmemcached-839949a9951bf54917eab8c6c1c5b2b8e2468e17.tar.gz
Add new stats expired_unfetched, evicted_unfetched
The two stats represent items which expired and memory was reused, and valid items which were evicted, but never touched by get/incr/append/etc operations in the meantime. Useful for seeing how many wasted items are being set and then rolling out through the bottom of the LRU's.
Diffstat (limited to 't')
-rwxr-xr-xt/binary.t2
-rwxr-xr-xt/stats.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/t/binary.t b/t/binary.t
index 99dcc52..85ed46f 100755
--- a/t/binary.t
+++ b/t/binary.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use Test::More tests => 3470;
+use Test::More tests => 3533;
use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;
diff --git a/t/stats.t b/t/stats.t
index 7c78617..97a5b7c 100755
--- a/t/stats.t
+++ b/t/stats.t
@@ -58,7 +58,7 @@ my $sock = $server->sock;
my $stats = mem_stats($sock);
# Test number of keys
-is(scalar(keys(%$stats)), 43, "43 stats values");
+is(scalar(keys(%$stats)), 48, "48 stats values");
# Test initial state
foreach my $key (qw(curr_items total_items bytes cmd_get cmd_set get_hits evictions get_misses