Skip to content

suggestion: BYO Deno.Kv instance #309

@MarkTiedemann

Description

@MarkTiedemann

Currently, this module always opens a new Deno.Kv instance.

const kv = await Deno.openKv(path);

Would it make sense to add a kv property to the CreateHelperOptions when calling createHelpers?

Simply put, Bring Your Own KV. :)

Advantages:

  • No need to open a second instance if one is already open
  • You can choose which KVs to put the session data into if you're using multiple databases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions