Configuring TTL in edges and vertices of graph


abhayti...@...
 

I was able to set TTL for vertices and edges, but even after the time has passed, the vertex did not got removed from the Db. My storage backend is Cassandra. So do we have to configure anything for Cassandra to activate TTL through janusgraph.

I used the following code :-

graph = JanusGraphFactory.open('conf/janusgraph-cassandra-solr.properties)
mgmt = graph.openManagement()
tweet = mgmt.makeVertexLabel('tweet').setStatic().make()
mgmt.setTTL(tweet, Duration.ofMinutes(2))

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.