You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
Interestingly, there's a two-part key, so like namespace-prefixed-keys, which I believe they adopted for some security reasons, but is pretty elegant from a usage POV as well.
awaitkv.set(["users","alice"],{birthday: "January 1, 1990"});awaitkv.set(["users","sam"],{birthday: "February 14, 1985"});awaitkv.set(["users","taylor"],{birthday: "December 25, 1970"});// List out all entries with keys starting with `["users"]`forawait(constentryofkv.list({prefix: ["users"]})){console.log(entry.key);console.log(entry.value);}
This feature is currently available behind an unstable flag, but will be opened up with 2.0 this Summer.
https://deno.com/manual@v1.33.2/runtime/kv
Interestingly, there's a two-part key, so like namespace-prefixed-keys, which I believe they adopted for some security reasons, but is pretty elegant from a usage POV as well.
And then the value is just JSON.
The above code returns the following in the REPL:
So it could be used to store (and even serve) styles, templates, terms, input data, etc. Think examples like:
The text was updated successfully, but these errors were encountered: