Merge pull request #839 from judsonjuniorr/v2-is-on-whatsapp-cache

Save is on whatsapp on the database
This commit is contained in:
Davidson Gomes
2024-09-02 09:37:25 -03:00
committed by GitHub
9 changed files with 211 additions and 7 deletions

View File

@@ -38,11 +38,11 @@ export class CacheService {
}
}
async set(key: string, value: any) {
async set(key: string, value: any, ttl?: number) {
if (!this.cache) {
return;
}
this.cache.set(key, value);
this.cache.set(key, value, ttl);
}
public async hSet(key: string, field: string, value: any) {