mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
Added destructor in redis connection
This commit is contained in:
parent
d7d0e5ec82
commit
77f98c2438
@ -79,4 +79,20 @@ export class RedisCache {
|
||||
this.logger.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
public async closeConnection() {
|
||||
try {
|
||||
await this.client.quit();
|
||||
} catch (error) {
|
||||
this.logger.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
public async destructor() {
|
||||
await this.closeConnection();
|
||||
}
|
||||
|
||||
public async destroy() {
|
||||
await this.destructor();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user