Re: atomic test-or-set

2010-10-06 Thread Simon Reavely
gt; >> Does Cassandra have an atomic test-or-set operation? >> >> That is, I want to check to see if a key has a value and, if not, set it to >> something. But it must be an atomic operation - I can't do a separate fetch >> and then set from the application as that cr

Re: atomic test-or-set

2010-10-05 Thread Ian Rogers
On 05/10/2010 16:30, Ryan King wrote: On Tue, Oct 5, 2010 at 8:23 AM, Ian Rogers wrote: Does Cassandra have an atomic test-or-set operation? That is, I want to check to see if a key has a value and, if not, set it to something. But it must be an atomic operation - I can't do a sep

Re: atomic test-or-set

2010-10-05 Thread Ryan King
On Tue, Oct 5, 2010 at 8:23 AM, Ian Rogers wrote: > > Does Cassandra have an atomic test-or-set operation? > > That is, I want to check to see if a key has a value and, if not, set it to > something.  But it must be an atomic operation - I can't do a separate fetch >

atomic test-or-set

2010-10-05 Thread Ian Rogers
Does Cassandra have an atomic test-or-set operation? That is, I want to check to see if a key has a value and, if not, set it to something. But it must be an atomic operation - I can't do a separate fetch and then set from the application as that creates a possible race condition