Skip to content

Instantly share code, notes, and snippets.

@haimrait
Last active January 4, 2020 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haimrait/be5d7e957e5bc2e1930f82f4f41ed670 to your computer and use it in GitHub Desktop.
Save haimrait/be5d7e957e5bc2e1930f82f4f41ed670 to your computer and use it in GitHub Desktop.
node-redis-mongo - Connection between our application to redis client
const mongoose = require("mongoose");
const redis = require("redis");
const keys = require("../config/keys");
const client = redis.createClient({
host: keys.redisHost,
port: keys.redisPort,
retry_strategy: () => 1000
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment