Re: memcache and perl question

2015-11-24 Thread Joseph Norris
Yes that is the point - I need an area to store a hash outside of my plack cycle. Local hashes get overwritten because plack spawns a new child through each cycle. thanks. On Tuesday, November 24, 2015 at 10:29:17 AM UTC-7, perrin wrote: > On Tue, Nov 24, 2015 at 12:21 PM, Joseph Norris

Re: memcache and perl question

2015-11-24 Thread Joseph Norris
Many thanks for your response. So my thinking was correct in this way: process 1 -> set($tag1,$hash);data unique to process 1 process 1 -> get($tag1,$hash); process 2 -> set ($tag2,$hash); data unique to process 2 process 2 -> get($tag2,$hash); each process must have a unique key to

Re: memcache and perl question

2015-11-24 Thread Perrin Harkins
On Tue, Nov 24, 2015 at 12:21 PM, Joseph Norris wrote: > process 1 -> set($tag1,$hash);data unique to process 1 > process 1 -> get($tag1,$hash); > process 2 -> set ($tag2,$hash); data unique to process 2 > process 2 -> get($tag2,$hash); > I'm not sure what you're

Re: memcache and perl question

2015-11-24 Thread Perrin Harkins
On Tue, Nov 24, 2015 at 11:05 AM, Joseph Norris wrote: > if I set a tag to a value of a hash: > > $self->{cache}->set('tag',$hash); > > is the hash ref set in memcache that will point back to my hash or do I > have to actually have a %hash to be used in >

memcache and perl question

2015-11-24 Thread Joseph Norris
Very new to memcache. in my application I am using Cache::Memcached. My questions are: if I set a tag to a value of a hash: $self->{cache}->set('tag',$hash); is the hash ref set in memcache that will point back to my hash or do I have to actually have a %hash to be used in