简体   繁体   中英

Increase/Decrease value in phpcassa

Is there any method for simple increase/decrease integer value in cassandra using phpcassa? Maybe it is CounterColumn, but I didn't find anything about how to use it.

Basically, I just want to increase some counter on action, any tips or code sample?

Have you seen this example . ColumnFamily::add() is the easiest way to increment a counter

$count_cf->add("key1", "col1", 10);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM