Using nodejs to Realize Timing Events of Server

  node.js, question

I want to make an effect that the number of pages keeps increasing every time I open the page. At present, I use the localstorage of html5, but the number of cached pages will return to the original state when I change a computer or clear it once. I think one way is to create a new txt on the server, regularly increase the number of pages and write it into txt. I want to know that there is a better way besides this, and I hope everyone can give me a thought ~

As long as your server doesn’t stop, you can save a variable inside on the server side. Anyway, it’s just a number, basically ignoring memory usage!

Of course, you can also use some persistence layer schemes, such as databases.cacheAh, things like that, too.

Put a file.txtThis is not handsome enough!