martpet
martpet•17mo ago

Prefix Kv keys with a base part

Currently I add base() to all keys:
kv.set([base(), "foo"], value)
kv.set([base(), "foo"], value)
Instead of manually adding base() to every key, could there be a way to have it added by default, for all Kv methods?
4 Replies
Esente
Esente•17mo ago
You write your own functions that wrap Kv methods. Or... the evil way -> changes Kv.prototype 😄
Unknown User
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
martpet
martpetOP•17mo ago
Hmm, yes. But this won't work in Deploy i guess
NDH
NDH•17mo ago
Deploy doesn't have the concept of a file. it uses a managed FoundationDB .afaik!