Setting an expiring column
Steps for setting an expiration time, or time-to-live (TTL) attribute for the data.
When you set a column in Cassandra, you can optionally set an expiration time, or time-to-live (TTL) attribute for the data. The data is not actually deleted from disk until normal Cassandra compaction processes are completed.
[default@demo] SET users['bobbyjo'] [utf8('coupon_code')] = utf8('SAVE20') WITH ttl=864000;
Attention: Be sure this document version matches your product version