On Nov 24, 2009, at 8:11 AM, juanbackson wrote:
Hi,
I have two distributed clients that need to write stuff to memcached,
but each write will involve two records. These two records must be
sync. So, they must be changed together.
Is there anyway that I can lock on those two records and write them,
so there won't be issue with two clients writing at the same time?
If any one record is always associated with one unique other record,
that is, if A is always a pair with G, and never with any other
record, and so forth...
Then just treat each pairing as a single item, concatenate their
record ids together to make the key, and write that.
--
Mark Atwood <http://mark.atwood.name>