diff --git a/inventoryService.js b/inventoryService.js index 9d5feb4..d4fb7c6 100644 --- a/inventoryService.js +++ b/inventoryService.js @@ -9,3 +9,7 @@ client.set("books_count", "123", redis.print); client.get("books_count", function (err, reply) { console.log('books_count = ' + reply.toString()); }); + +process.on('SIGINT', function() { + process.exit(); +});