When should kv.close()
be called?
#27467
Unanswered
brettchalupa
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been digging into using Deno KV, and I was wondering how others are approaching interacting with the KV store and closing the connection.
Do you call:
Multiple times throughout your application or do you export your
kv
once and then access it through an import in your code?I see the Todo Showcase app exports the kv as
db
. And I can't find any reference to closing it.Or do you open it and close it within a given function? Example:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions