1

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?

sasa
  • 2,443
  • 5
  • 23
  • 35

1 Answers1

3

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

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

abhi
  • 4,762
  • 4
  • 29
  • 49