问题
Does Cassandra support TTL for the Counter column family?
Specifically we use Hector as a client to Cassandra and I didn't find any API receiving TTL as a parameter. At least HFactory.createCounterColumn
doesn't have TTL argument.
回答1:
No. TTL expiration does not exist for counter columns. See CASSANDRA-2103 for background on why this feature doesn't make sense for Cassandra counter columns.
来源:https://stackoverflow.com/questions/19752308/is-ttl-for-cassandra-counter-column-family-supported