As far as I know there is not a way to dump the contents of the cache even by 
using a prefix of the key.

-Robert


On 6/10/08 10:50 AM, "Grant Maxwell" <[EMAIL PROTECTED]> wrote:

Hi again

A bit more on this - Even if I could match a partial key. All my keys start as 
some string for example "ACA:mykey". If I could extract all "ACA:" type keys 
that would be very helpful. Almost all my keys/values are scalars.
thanks



Grant Maxwell

P <mailto:[EMAIL PROTECTED]> please consider the environment before printing 
this e-mail


On 11/06/2008, at 12:45 AM, Grant Maxwell wrote:

Hi folks

I am a new user for memcached - love it already. We are experiencing a better 
than expected hit rate. This is reducing load on sql and dns RBL lookups across 
several machines. Magic.

Could you let me know if it is possible to dump out the contents of the cache ? 
I tried the following but without success. I thought it might return a hash of 
it all.

my  $memd = new Cache::Memcached {
'servers' => [ "localhost:11211" ],
'debug' => 0,
namespace => 'myCache:'
};

my $cache=$memd->get('myCache');
print Dumper $cache;

Just a point here - I have been programming in various languages for 20+ years 
but perl is new to me so I might be overlooking an obvious :).


regards



Grant Maxwell

P <mailto:[EMAIL PROTECTED]> please consider the environment before printing 
this e-mail

Reply via email to