mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: redis feedback updates
This commit is contained in:
parent
1436b808e2
commit
f192dc2c03
@ -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: {
|
||||||
|
@ -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 };
|
||||||
|
Loading…
Reference in New Issue
Block a user