mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-23 04:22:02 -06:00
Merge pull request #1332 from theeusmartins/main
Defininando TTL no userDivicesCache igual usado no Baileys
This commit is contained in:
commit
341a0d884f
@ -230,7 +230,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