Skip to content

support list for KeyValueStore #6382

Closed

Description

@skoshx

What is the problem this feature would solve?

self explanatory, i think list is quite important and useful for KV related stuff. i usually need to roll out my own KeyValueStore impl that's literally just KeyValueStore & { list: Effect<ReadonlyArray<string>> }

thoughts?

What is the feature you are proposing to solve the problem?

--

What alternatives have you considered?

No response

Activity

  1. added
    enhancement
    on Dec 6, 2025
  2. mikearnaldi commented on Dec 15, 2025

    @mikearnaldi
    Member

    not all key value stores support listing keys no?

  3. skoshx commented on Dec 15, 2025

    @skoshx
    ContributorAuthor

    Which one doesnt? Redis, Lmdb, IndexedDb, localStorage and session storage all support a list operation?

  4. datner commented on Mar 31, 2026

    @datner
    Contributor

    Redis does have a KEYS operation
    LMDB does not have any list operation.
    IndexedDb has a listAllKeys().
    LocalStorage and SessionStorage don't have a list operation, but you can technically iterate over their keys with Object.keys since in the specification of a Storage, the entry names are accessible on the instance.

    In my opinion, it is debatable whether a list operator should exist on a KeyValueStore, given considerations of data ephemerality and the reliability of the results. There is an argument to be made that it is not optimal KV store usage for the logic flow to rely on listing the keys. Especially for larger datasets

  5. IMax153 commented on Jul 14, 2026

    @IMax153
    Member

    Assigned @tim-smart to make a decision here.

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

Metadata

Metadata

Assignees

Labels

4.0enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions