Skip to content

modules(key_value): add get_keys convenience method #134

Description

@vdice

With the latest version of the key_value module (as of #132), the stock get_keys() method on Store (as defined in the spin_key_value_key_value_3_0_0 wit) returns a Tuple[StreamReader[str], FutureReader[Result[None, Error]]], rather than a list of strings.

This issue is for creating a convenience helper for returning the list of strings (keys), handling the StreamReader and FutureReader under the hood. Update the spin-kv example to suit once implemented.

Ref #132 (comment) for original context and #132 (comment) for proposed solution/implementation (potentially in a utils module as it is more generic than kv)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions