Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of keys from jetstream KV #140

Open
sergeymavrin opened this issue Feb 1, 2024 · 2 comments
Open

List of keys from jetstream KV #140

sergeymavrin opened this issue Feb 1, 2024 · 2 comments
Labels
proposal Enhancement idea or proposal

Comments

@sergeymavrin
Copy link

Proposed change

Is there a way to get list of all keys stored in jetstream KV storage?

Use case

Need analize all keys

Contribution

No response

@sergeymavrin sergeymavrin added the proposal Enhancement idea or proposal label Feb 1, 2024
@djmetzle
Copy link

djmetzle commented Oct 2, 2024

I found myself hoping this was implemented as well.

Im not familiar with Go, but it looks this is how it is done in that SDK:
https://github.com/nats-io/nats.go/blob/f0c0194ad0ca716dfa162baac7e94d900a53f2c9/jetstream/kv.go#L1220-L1244

Looks like ListKeys is setting up a watch on all keys, which appears to return all of the current existing key values. It doesnt not seem nats-pure implements watch?

class JetStream

As far as i can tell though, this could be quite complex to implement.

@wallyqs
Copy link
Member

wallyqs commented Oct 2, 2024

it's been on my list, will try to add it this week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Enhancement idea or proposal
Projects
None yet
Development

No branches or pull requests

3 participants