Getting a list of all of the keys would be non-performant and block
memcached from serving up key requests so it is not built in.

Why do you need the list?

"If you see a whole thing - it seems that it's always beautiful. Planets,
lives... But up close a world's all dirt and rocks. And day to day, life's a
hard job, you get tired, you lose the pattern."
Ursula K. Le Guin

On Tue, Jun 10, 2008 at 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 <[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 <[EMAIL PROTECTED]>* **please consider the environment before
> printing this e-mail*
>
> *
> *
>
>
>
>

Reply via email to