atom feed5 messages in com.googlegroups.memcachedRe: memcache and perl question
FromSent OnAttachments
Joseph NorrisNov 24, 2015 8:05 am 
Perrin HarkinsNov 24, 2015 9:07 am 
Joseph NorrisNov 24, 2015 9:21 am 
Perrin HarkinsNov 24, 2015 9:29 am 
Joseph NorrisNov 24, 2015 3:52 pm 
Subject:Re: memcache and perl question
From:Perrin Harkins (phar@gmail.com)
Date:Nov 24, 2015 9:29:05 am
List:com.googlegroups.memcached

On Tue, Nov 24, 2015 at 12:21 PM, Joseph Norris <joze@gmail.com> 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 trying to do. Assuming that $tag ne $tag2, there is no data being shared here and no point to using memcached. The normal thing would be for the key to be the same in both processes so they can both get and set the same data. The actual hashes in local memory are different of course.

each process must have a unique key to manipulate the hash via set and get

No, if they each have a unique key, they will be looking at totally different data in memcached and not sharing.

- Perrin