fix: redis feedback updates

This commit is contained in:
yassinedorbozgithub 2024-11-17 10:39:10 +01:00
parent 1436b808e2
commit f192dc2c03
2 changed files with 3 additions and 2 deletions

View File

@ -132,7 +132,7 @@ export const config: Config = {
type: process.env.REDIS_ENABLED === 'true' ? 'redis' : 'memory', type: process.env.REDIS_ENABLED === 'true' ? 'redis' : 'memory',
ttl: 60 * 1000, // Milliseconds ttl: 60 * 1000, // Milliseconds
max: 100, // Maximum number of items in cache (defaults to 100) max: 100, // Maximum number of items in cache (defaults to 100)
host: process.env.REDIS_HOST, host: process.env.REDIS_HOST || 'redis',
port: parseInt(process.env.REDIS_PORT || '6379'), port: parseInt(process.env.REDIS_PORT || '6379'),
}, },
mongo: { mongo: {

View File

@ -21,7 +21,8 @@ type TCacheConfig = {
max: number; max: number;
host: string; host: string;
port: number; port: number;
} & { type: 'memory' | 'redis' }; type: 'memory' | 'redis';
};
export type Config = { export type Config = {
i18n: { translationFilename: string }; i18n: { translationFilename: string };