Cache-MemcachedBinary
view release on metacpan or search on metacpan
lib/Cache/MemcachedBinary.pm view on Meta::CPAN
return $self->_connect();
}
sub _connect {
my $self = shift;
my $socket = IO::Socket::INET->new(
PeerAddr => $self->host,
PeerPort => $self->port,
Proto => 'tcp',
Timeout => $self->timeout,
Type => SOCK_STREAM
);
my $error = $!;
if ($error) {Encode::_utf8_on($error);}
$self->_log( sprintf "Connect to host: %s, port: %s, timeout: %s", $self->host, $self->port, $self->timeout );
$self->_log("result: " . ($socket ? 'success' : 'error: ' . $error));
if ($socket) {
( run in 0.239 second using v1.01-cache-2.11-cpan-4d50c553e7e )