nats-io / nats.rs

Rust client for NATS, the cloud native messaging system.
Apache License 2.0
1.04k stars 164 forks source link

async-nats is missing a `GetRevision` equivalent #1269

Open protochron opened 4 months ago

protochron commented 4 months ago

Proposed change

A Store in the async-nats KV client should support the equivalent GetRevision call that other language SDKs support. history is a workaround of course, but there's no reason to use it if you're only looking for a specific key revision.

Use case

Parity with other NATS SDKs, better ergonomics for interacting with KV buckets.

Contribution

No response

Jarema commented 4 months ago

Hey. Yes, this will be part of next release. In the meantime, the cleaner version is to use direct_get on stram.