title: How can I store the state of Node.js REST API?
body: <p>I build an API, which will send data to another API when has been collect 10 hashes. The client sends 1 hash per hour.</p>
  
  <p>For example:</p>
  
  <ol>
  <li>The client POST hash to API</li>
  <li>API need to store it somewhere until the hashes number becomes to 10 </li>
  <li>When the number of hashes becomes 10 need to send data to another API and start from 0 again</li>
  </ol>
  
  <p>My question related to the 2nd point. I can store the hashes in the array, the problem is that the data will be lost when the server will be shut down suddenly.</p>
  
  <p>This is the only data which I need to store in API, so I don't want to use DBS.</p>
  
  <p>By the way, it's my first time of developing API, so will be glad to your help.</p>
  
  <p>Thanks in advance.</p>