mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 04:02:54 -06:00
Defininando TTL no userDivicesCache igual usado no Baileys
This commit is contained in:
parent
427c994993
commit
36757dddc2
@ -226,7 +226,10 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
|
|
||||||
private authStateProvider: AuthStateProvider;
|
private authStateProvider: AuthStateProvider;
|
||||||
private readonly msgRetryCounterCache: CacheStore = new NodeCache();
|
private readonly msgRetryCounterCache: CacheStore = new NodeCache();
|
||||||
private readonly userDevicesCache: CacheStore = new NodeCache();
|
private readonly userDevicesCache: CacheStore = new NodeCache({
|
||||||
|
stdTTL: 300000,
|
||||||
|
useClones: false
|
||||||
|
});
|
||||||
private endSession = false;
|
private endSession = false;
|
||||||
private logBaileys = this.configService.get<Log>('LOG').BAILEYS;
|
private logBaileys = this.configService.get<Log>('LOG').BAILEYS;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user