v5.1.1
Updates
- TTL support
// permanent await db.set("test", 123); // set the data and automatically delete it after 1 minute await db.set("foo", "bar", 60); // 60 seconds = 1 minute // fetch the temporary data after a minute setTimeout(async () => { await db.get("foo"); // null await db.get("test"); // 123 }, 60_000);
Full Changelog: v5.1.0...v5.1.1