Closed touhidurrr closed 7 months ago
That should work just fine. It'll store up to 50 megabytes of character values. (Since string is used for both key and value, maybe you want to add the length of the key and length of the value? Unless the keys are always very short, then maybe doesn't matter much.)
@isaacs, i am not sure if these settings are working properly.
[!NOTE] My keys are UUIDs and length can be ignored. Also the point where the memory started to grow, is the point I started to use
lru-cache
. Also, mymaxSize
is100mb
now.
Note: I am using
string
as key and value type. This is my setup:Do I have to set anything else? Or this will work just fine. I read the docs and confused what is optional and what is necessary and how will the cache behave with the setup above.