DenoDDeno
Powered by
octo3.O
Denoβ€’2y agoβ€’
4 replies
octo3.

Is there a way to specify a range and list from KV?

const kv = await Deno.openKv();
kv.set(["parent", 1], "key1")
kv.set(["parent", 2], "key1")
kv.set(["parent", 3], "key1")
kv.set(["parent", 4], "key1")
const kv = await Deno.openKv();
kv.set(["parent", 1], "key1")
kv.set(["parent", 2], "key1")
kv.set(["parent", 3], "key1")
kv.set(["parent", 4], "key1")

Is it possible to retrieve only those of these that match the content of ["parent", 1~3] ?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Is there a way to limit a slider knob to a range?
wedmaniacWwedmaniac / help
2y ago
KV list is returning an empty iterator, but data is there and gettable via get
_pear__pear / help
3y ago
Is there a way to handle permission prompts from a worker?
easrngEeasrng / help
13mo ago