3 ms·
no need an extra layer of abstraction to get an "in memory" database in javascript. no need, babel, webpack, ChatGpt, npm and 10000 libraries for this really.
by nbittich 4y ago
no need an extra layer of abstraction to get an "in memory" database in javascript. no need, babel, webpack, ChatGpt, npm and 10000 libraries for this really.
Let me show (works even on the browser):
const KV = {};
KV["credentials"] = {access_key: "XXXX", secret: "YYYY"};
console.log(KV["credentials"].secret);
- hem777 4y agoMaybe? Depends on the rest of the software you’d be developing and what features and abstractions you’d need. The point was that “just use redis” is a poor and incorrect advice.
- hombre_fatal 4y agoNow show me the rest of the functionality of the OP library like TTL.
- nbittich 4y agoSomeone already replied to this in another comment.