Created
November 15, 2020 10:23
-
-
Save mhemrg/d2204b8b3011f18217b8c235165492a3 to your computer and use it in GitHub Desktop.
NodeJS Redis Configuration
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 Redis = require("ioredis"); | |
new Redis({ | |
port: process.env.REDIS_PORT, | |
host: prcess.env.REDIS_HOST, | |
password: process.env.REDIS_PASSWORD, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment