【问题标题】:Increase/Decrease value in phpcassa增加/减少phpcassa中的值
【发布时间】:2013-04-08 18:01:31
【问题描述】:

有没有使用phpcassa在cassandra中简单增加/减少整数值的方法?也许是CounterColumn,但我没有找到任何关于如何使用它的信息。

基本上,我只是想增加一些关于操作的计数器、任何提示或代码示例?

【问题讨论】:

    标签: php nosql cassandra phpcassa


    【解决方案1】:

    你看过这个example。 ColumnFamily::add() 是增加计数器的最简单方法

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

    【讨论】:

      猜你喜欢
      • 2012-05-30
      • 2021-11-21
      • 1970-01-01
      • 1970-01-01
      • 2015-01-29
      • 2011-02-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多