I just noticed that NATS 2.11 was released last week. The feature I've been waiting for is per-message TTLs, so I just added support for them to my Crystal NATS client.
https://github.com/jgaskins/nats/commit/177a76b0c5ed58522326cd08e33a7c3a1cd59a57
@jamie please note we have one issue to solve around TTLs and periods without a leader. So we will only add KV support in 2.11.1 in our clients
@ripienaar I did notice the Golang client didn't have it in kv.go. I actually even considered pinging you about it in this thread, but assumed it was expected to use the `js.MsgTTL` function.
@ripienaar That would've been surprising to me, but I'm not familiar enough with the conventions in the Golang client to judge.
@jamie we plan to add it to Purge() and Create() APIs
I also need to fix one oversight - A TTLd message need to create a marker that it got removed