Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to check connection to Cache::Memcached::libmemcached;

by Anonymous Monk
on Nov 16, 2012 at 13:59 UTC ( [id://1004193]=note: print w/replies, xml ) Need Help??


in reply to How to check connection to Cache::Memcached::libmemcached;

But $mem is awlays true .... How should i do it?

That ought to work, what is the problem?

I suppose you could check ->errstr , but if it returns an object when it should return undef, that is a bug

  • Comment on Re: How to check connection to Cache::Memcached::libmemcached;

Replies are listed 'Best First'.
Re^2: How to check connection to Cache::Memcached::libmemcached;
by himik (Acolyte) on Nov 16, 2012 at 14:07 UTC

    when i do

    my $mem = Cache::Memcached::libmemcached->new( { servers => [ "12133 +21" ], compress_threshold => 10_000 } ); print $mem->errstr;
    The output is SUCCES. But the server is not valid one and I can not connect to it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1004193]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-18 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found