spring-data-cassandra: Apply TTL via CrudRepository.save(…) [DATACASS-534]

SanjayAgnani opened DATACASS-534 and commented

Hello guys , I would like to know if we can insert /update row with an feature of TTL in Spring Data Cassandra using repository interfaces. Able to delete/select based on below method declaration

@AllowFiltering
public void deleteByfirstnameAndLastname(String fn, String ln);

Looking for something similar to insert /save using TTL support


0 votes, 5 watchers

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Reactions: 3
  • Comments: 15 (2 by maintainers)

Most upvoted comments

Hi team, any update on this? Having this feature would be awesome!

Discussion for this topic happens here. Currently, we’re at the design state, not really into code. There’s quite some tension in Repository.save(…) vs. CassandraTemplate.save(…). We generally want to keep our repository method signatures free from store-specific code. Any kind of additional methods/overloads accepting additional arguments violates that principle.