cassandra计数器,原子获取和设置

时间:2014-03-11 17:08:12

标签: cassandra atomic

cassandra是否支持原子获取并为计数器设置?即。

create table c(id int, value counter, primary key (id));

update update c set value=value+1 where id=1;
好的,现在我的柜台准备好了。但是我希望能够从多个服务器读取一个唯一值,每个服务器都获得一个不同的值,比如

select value from c where id=1; 

0 个答案:

没有答案
相关问题