【问题标题】:how set time-to-live for column in Cassandra with Hector?如何与 Hector 在 Cassandra 中为专栏设置生存时间?
【发布时间】:2014-09-11 18:48:52
【问题描述】:

如何使用 Hector 为 Cassandra 1.1.6 中的列设置生存时间?我试图找到解决这个问题的任何方法,但没有任何发现

【问题讨论】:

    标签: java cassandra hector


    【解决方案1】:

    使用可以使用hector中HColumn的setTtl方法

    column.setTtl(ttl);
    

    【讨论】:

      猜你喜欢
      • 2012-06-02
      • 2013-08-02
      • 2012-07-04
      • 2015-06-03
      • 1970-01-01
      • 1970-01-01
      • 2022-10-05
      • 2011-09-24
      • 2015-04-08
      相关资源
      最近更新 更多