【问题标题】:Cassandra update column should update column value but not the ttl?Cassandra更新列应该更新列值而不是ttl?
【发布时间】:2021-06-10 15:16:43
【问题描述】:

我想知道是否有办法更新 cassandra 中的列 value 但已经存在的列 ttl 应该保持不变。

如果可以的话,请告诉我吗?

【问题讨论】:

    标签: cassandra cassandra-3.0 ttl


    【解决方案1】:

    您可以在更新列时将 ttl 更新为所需的值。我的意思是你可以以编程方式实现它。示例请浏览此页面 (https://docs.datastax.com/en/cql-oss/3.3/cql/cql_using/useExpireExample.html)。

    【讨论】:

    • 我必须得到当前列的 ttl,然后用值和 ttl 更新列。
    • 我的意思完全一样。
    猜你喜欢
    • 2015-11-29
    • 1970-01-01
    • 2018-02-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-19
    • 2013-04-27
    • 2018-10-28
    相关资源
    最近更新 更多