Cache-Memcached-Managed
view release on metacpan or search on metacpan
lib/Cache/Memcached/Managed.pm view on Meta::CPAN
# For all of the servers we want to do this
# Reloop if not to be done
# Obtain STATS info
my %todo = @_ ? map {$_ => undef} @_ : %{$self->servers};
my %result;
foreach my $cache ($self->data,$self->directory) {
foreach my $host ( $self->servers ) {
next unless exists $todo{$host} and not exists $result{$host};
$result{$host} = {
map {s#^STAT ##; split m#\s+#}
$self->_morelines( $cache,$host,"stats" )
};
}
}
# Return the result hash as a ref
\%result;
} #stats
( run in 1.013 second using v1.01-cache-2.11-cpan-71847e10f99 )