Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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;
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
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 imbibing at the Monastery: (5)
As of 2015-07-30 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls