Yep. This is a quintessential example of “I’m going to learn by recreating the essence of a complex thing”… taken to the end. And then a logo is slapped on top. I’m all for js libs but this is not performant. Just use redis.
Is an in-process, in-memory database faster than making a query over network? Yes it is.
https://narma.github.io/2015/redis-in-browser/
https://medium.com/fluence-network/porting-redis-to-webassem...
const KV = {};
KV["credentials"] = {access_key: "XXXX", secret: "YYYY"};
console.log(KV["credentials"].secret);
The point was that “just use redis” is a poor and incorrect advice.