Home Application-scope Variables in Node.js?
Reply: 0

Application-scope Variables in Node.js?

user439 Published in July 16, 2018, 3:06 am

Is there a variable scope in Node.js that persists longer than the request, that is available to all application users? I'd like to create a variable that can be read/written to by multiple app users, like so:

var appScope.appHitCount += 1;

The session scope won't work because it is user specific. Looking for application specific. I couldn't find anything in the Node.js docs. Thanks.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.300621 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO