node-persist
node-persist copied to clipboard
Super-easy persistent data structures in Node.js
the `async` keyword is only needed if the function's body use's `await`
Hello, any idea what is the cause of this error? My application is deployed in Vercel, and sometimes it crashes and generates this error. ```bash 2022-07-19T04:35:38.321Z c2e38db0-e42e-4b5c-ac95-f50ec717eb7e ERROR Unhandled Promise...
Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1. Release notes Sourced from pathval's releases. v1.1.1 Fixes a security issue around prototype pollution. Commits db6c3e3 chore: v1.1.1 7859e0e Merge pull request #60 from...
Concureent `setItem` and `getItem` can lead into an unahdled `does not look like a valid storage file`: > parse error: {} for: > Error: [node-persist][readFile] .node-persist/storage/37b51d194a7513e45b56f6524f2d51f2 does not look like...
Wouldnt it be nice to implement Typescript, as it improves Readability, Mantainability and it improves the Developer experience?
Some objects which are supposed to stick around are arrays, some of which expand. Obviously the pattern is general, the larger the object we want to persist the longer writeFile...
Any idea why it couldn't find node-persist and breaks unless I comment out requiring node-persist? Or are there any debugging steps I could take next?   const express =...
In case there is a folder in the same directory as the cache file, then this folder is accessed as a file which lead to the ugly error above. Easy...
When doing heavy concurrent writes/persists that progressively decrease in size, files can sometimes become corrupted as newer data only partially overwrites older data (as there is no locking mechanism in...
Hi, Let's say we run in an electrically unstable environment, and the system we are running on may be shut down unexpectedly, i.e. power loss. AND we were in the...