Closed tkhduracell closed 9 years ago
What would it mean to expire
? The object would be set to null
after expiration?
Yes, essentially. The file would be read from filesystem again, when js.readFileSync
is called. Could be handy in my view. Maybe it is out of the scope of this project though.
Yeah, I think this is out of scope. This could easily be done in a library that builds upon json-file
.
How about adding a simple caching mechanism?