2022-06-12 22:05:55 +03:00

45 lines
1.5 KiB
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Env_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Core/Env"));
const redisConfig = {
connection: Env_1.default.get('REDIS_CONNECTION'),
connections: {
local: {
host: Env_1.default.get('REDIS_HOST'),
port: Env_1.default.get('REDIS_PORT'),
password: Env_1.default.get('REDIS_PASSWORD', ''),
db: 0,
keyPrefix: '',
healthCheck: true,
},
session: {
host: Env_1.default.get('REDIS_HOST'),
port: Env_1.default.get('REDIS_PORT'),
password: Env_1.default.get('REDIS_PASSWORD', ''),
db: 1,
keyPrefix: 'session-',
healthCheck: true,
},
message: {
host: Env_1.default.get('REDIS_HOST'),
port: Env_1.default.get('REDIS_PORT'),
password: Env_1.default.get('REDIS_PASSWORD', ''),
keyPrefix: '',
db: 2,
healthCheck: true,
},
notification: {
host: Env_1.default.get('REDIS_HOST'),
port: Env_1.default.get('REDIS_PORT'),
password: Env_1.default.get('REDIS_PASSWORD', ''),
keyPrefix: '',
db: 3,
healthCheck: true,
},
},
};
exports.default = redisConfig;
//# sourceMappingURL=redis.js.map