You don’t need all of that to get a singleton in node.
Carson Evans
1
Hi,
Thanks for your comment.
What would your approach be? I understand the caching method working in the background, but how about working with state within the singleton? My code above does not have state variables, but the scenario is not excluded from happening.