I
I
IDONTSUDO2020-07-10 03:19:49
Node.js
IDONTSUDO, 2020-07-10 03:19:49

Node process.once 'SIGTERM' can I flush the cache?

Node process.once 'SIGTERM' can I flush the cache? I have a server that participates in pub / sub, it has a piece of data that it caches, and then passes it to another process to do something with it.

Can I using SIGTERM listening. Drop the server cache so that it is stored locally in JSON? (in case of an error, or adding an update).

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question