Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Anonymous Monk
on Nov 16, 2012 at 13:59 UTC ( #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;
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
Node Status?
node history
Node Type: note [id://1004193]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-12-21 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (102 votes), past polls