Last active
January 4, 2020 16:11
-
-
Save haimrait/be5d7e957e5bc2e1930f82f4f41ed670 to your computer and use it in GitHub Desktop.
node-redis-mongo - Connection between our application to redis client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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