ussd-tg-proxy/src/cache.js
Mohammed Sohail 2a42a5882c
release: v0.2.0
updates:

* add tests for most modules
* add confini for loading configs
* add contact spoof check
* add optional webhook support
* add error handling
* add pino logger
* update keyboard regex
2022-01-17 15:35:36 +03:00

14 lines
287 B
JavaScript

const Redis = require("ioredis");
const log = require("./log");
const config = require("./config");
const cache = new Redis({
host: config.get("REDIS_HOST"),
port: config.get("REDIS_PORT"),
db: config.get("REDIS_DB"),
});
log.debug("cache initialized");
module.exports = cache;