KV per-key TTL

16 views
Skip to first unread message

MrG35Mon

unread,
Jun 10, 2025, 11:41:15 AMJun 10
to nats

Hi all,

I'm trying to use the per-key TTL (Time To Live) feature in NATS JetStream's Key-Value store via the latest nats-py client.

From what I understand, it's possible to set TTLs on individual keys in other NATS client libraries (e.g., Go), but I can't find any API in nats-py that allows setting a TTL when creating or updating a key.

Has anyone successfully used per-key TTL with nats-py? Is there a workaround or lower-level API call I should be using?

Any guidance or examples would be greatly appreciated!

Thanks in advance,

Eddie.

Reply all
Reply to author
Forward
0 new messages