Bulk insertion from Redis to Mongodb using scheduler in NodeJS

304
September 10, 2017, at 07:48 AM

I have a Redis storage. I am using node_redis to insert data in Redis. Now I want to move those data in MongoDB using scheduler -

  • In every 10min
  • or when the number of key is 1000

Is there any built-in scheduler in node_redis to move those data or any other mechanism to implement those requirements using NodeJS?

Right now I am using setTimeout function. But I want to trigger this bulk insertion automatically after every 10min or when the redis key size is 1000.

Rent Charter Buses Company
READ ALSO
npm ERR! Cannot read property 'pause' of undefined --Bluemix

npm ERR! Cannot read property 'pause' of undefined --Bluemix

I am trying to deploy a Sailsjs app to Bluemix and we are getting the following error during the deploy stage in the toolchain on Bluemix (When the CF PUSH command is called):

547
Error comes up while trying to use DynamoDB

Error comes up while trying to use DynamoDB

Whenever I try to test my alexa skill (which uses DynamoDB to ask for a users name), This error comes up:

365
empty array while returning place

empty array while returning place

I was sorting place using compromise module nlp_compromise but this returns an empty array

221
Docker - npm install for development environment

Docker - npm install for development environment

I'm trying to work on a ReactJS project for development purposes in Docker, and this project will be shared across a team

313