https://github.com/spring-projects/spring-ai/blob/6acd202c12220b27d39e3d3dd25cfe6a527fa2a8/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/chat/memory/cassandra/CassandraChatMemoryProperties.java#L48
Can we please change name or its implementation as the value I am assigning this using properties is in milliseconds and field name is time-to-live-seconds and can we add any provision that if I add or update this field value then after application restart changes will reflect as of now it only works if table is not there previously
Comment From: jitokim
It should be seconds and this TTL is used when creating the table
https://github.com/spring-projects/spring-ai/blob/420bf5ed78559a0c0f40006b804d3edda6efce2e/vector-stores/spring-ai-cassandra-store/src/main/java/org/springframework/ai/chat/memory/CassandraChatMemoryConfig.java#L168
Comment From: tusharleek
Yes But when in properties I am providing spring: ai: chat: memory: cassandra: keyspace: conversation time-to-live-seconds: 120000
then my rows are deleting after 120 seconds
if I am using above property in logs you can see that defaultTimetoLive is 120 even after setting 120000 in properties
Comment From: jitokim
@tusharleek
I have created a PR. Please review it 😃