martpet
martpet•13mo 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•12mo ago
You write your own functions that wrap Kv methods. Or... the evil way -> changes Kv.prototype 😄
Unknown User
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
martpet
martpet•12mo ago
Hmm, yes. But this won't work in Deploy i guess
NDH
NDH•12mo ago
Deploy doesn't have the concept of a file. it uses a managed FoundationDB .afaik!