Skip to content

Instantly share code, notes, and snippets.

@haimrait

haimrait/cache.js

Last active Jan 4, 2020
Embed
What would you like to do?
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