Cassandra ttl on a row

后端 未结 3 764
梦毁少年i
梦毁少年i 2020-12-31 06:12

I know that there are TTLs on columns in Cassandra. But is it also possible to set a TTL on a row? Setting a TTL on each column doesn\'t solve my problem as can be seen in t

3条回答
  •  轮回少年
    2020-12-31 06:41

    You can set ttl for a row in Cassandra 3 using

    INSERT INTO Counter(key,eventTime,value) VALUES ('1001',dateof(now()),100) USING ttl 10;
    

提交回复
热议问题