Defininando TTL no userDivicesCache igual usado no Baileys

This commit is contained in:
Matheus Martins Piedade 2025-03-24 15:15:45 -03:00
parent 427c994993
commit 36757dddc2

View File

@ -226,7 +226,10 @@ export class BaileysStartupService extends ChannelStartupService {
private authStateProvider: AuthStateProvider;
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 logBaileys = this.configService.get<Log>('LOG').BAILEYS;