Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 chilling in the Monastery: (11)
As of 2014-09-30 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (384 votes), past polls