-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
feat(ext/kv): key-value store #18232
Conversation
Co-authored-by: Luca Casonato <hello@lcas.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I read through the source and besides some nitpicks there's nothing standing out.
We can address these nitpicks after the release.
@losfair I see a
/// <reference lib="deno.unstable" />
const db = await Deno.openKv(":memory:");
console.log(Object.getOwnPropertyNames(Object.getPrototypeOf(db)));
console.log(await db.getMany([]));
await db.close();
|
This commit adds unstable "Deno.openKv()" API that allows to open a key-value database at a specified path. --------- Co-authored-by: Luca Casonato <hello@lcas.dev> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit adds unstable "Deno.openKv()" API that allows to open
a key-value database at a specified path.