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',
ttl: 60 * 1000, // Milliseconds
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'),
},
mongo: {

View File

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