himik has asked for the wisdom of the Perl Monks concerning the following question:
Hello monkers !! :) I'm using Cache::Memcached::libmemcached;
Here is what i want to do
But $mem is awlays true .... How should i do it?my $mem = Cache::Memcached::libmemcached->new( { servers => [ "$mcserv +er" ], compress_threshold => 10_000 } ); if ($mem) { my $tmp_value = $mem->get("tmpval"); } else { print "no conection to mem"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to check connection to Cache::Memcached::libmemcached;
by himik (Acolyte) on Nov 16, 2012 at 14:50 UTC | |
|
Re: How to check connection to Cache::Memcached::libmemcached;
by Anonymous Monk on Nov 16, 2012 at 13:59 UTC | |
by himik (Acolyte) on Nov 16, 2012 at 14:07 UTC |