I am trying to create a cache for nodejs. i was thinking of putting some cache data in memory and some in files, how do i store these large binary files in node js, without running out of memory. how do i know the memory limit has reached?
Share
Just posting the answer from the comment by Raynos :).. you can just us os.freemem() to find the available memory in the system.