Loading the puzzle…
The puzzle IDE is built for a laptop or larger screen. You can read everything here, but selecting code is easier with a mouse and a wider window.
Interview question: design a key-value store that sends each key to one of several storage backends by its prefix, and lets a caller write many keys in one call.
unstorage does this with mounts. A storage made by createStorage in
src/storage.ts has two mounts, at a and at b. The driver mounted at a
implements setItems. The driver mounted at b implements setItem but not
setItems. A caller passes the storage's setItems a list of keys, each one
under a: or under b:, with some of each. Which describes the driver calls
that follow? Select one option.
One of the listed options.
Each hint revealed before you solve takes 20 points off this puzzle's score.
Solve this puzzle to see the solution and a full explanation.
Pick one of the options.