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

Keys & Values separately #54

Open
fabiancook opened this issue Dec 14, 2023 · 0 comments
Open

Keys & Values separately #54

fabiancook opened this issue Dec 14, 2023 · 0 comments

Comments

@fabiancook
Copy link

fabiancook commented Dec 14, 2023

The Kv client currently has

list<T>(selector: KvListSelector, options?: KvListOptions): AsyncIterableIterator<{ key: KvKey, entry: T }[]>

Would be nice to be able to get the keys alone without needing to retrieve the entries

keys(selector: KvListSelector, options?: KvListOptions): AsyncIterableIterator<KvKey[]>

Thinking ahead, a similar function could be if you want just the values directly matching:

values<T>(selector: KvListSelector, options?: KvListOptions): AsyncIterableIterator<T>

This would match keys functionality available with other kv implementations:

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

No branches or pull requests

1 participant