Best way to update ttl of record?

Hello. I’m using badger and it’s really great, but I have question what the best way to update ttl of existing record? I have only found solution to create a new one and discard all other records.

@lcd1232 Data stored inside Badger is immutable. Hence you cannot update TTL of the existing record.
Inserting new record is the way to update TTL(the way you are doing it).