I'm writing a node.js software module which stores a number of strings of varying length in an object map. This is essentially serving as a in memory cache for my overall software.
I was wondering how do I account for the fact that more memory will be used up the longer my application is running and I understand node processes by default have a memory limit imposed by the v8 engine.
I have already put in place code which after a certain time removes old cache entries but this does not protect against a lot of cache entries being placed in a short amount of time.
memcachedwhich was designed for cacheing