Skip to content

v5.1.1

Compare
Choose a tag to compare
@twlite twlite released this 21 Jan 12:50
· 20 commits to main since this release

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