MCPcopy Create free account
hub / github.com/evolution-foundation/evolution-api / deleteAll

Method deleteAll

src/cache/rediscache.ts:85–96  ·  view source on GitHub ↗
(appendCriteria?: string)

Source from the content-addressed store, hash-verified

83 }
84
85 async deleteAll(appendCriteria?: string) {
86 try {
87 const keys = await this.keys(appendCriteria);
88 if (!keys?.length) {
89 return 0;
90 }
91
92 return await this.client.del(keys);
93 } catch (error) {
94 this.logger.error(error);
95 }
96 }
97
98 async keys(appendCriteria?: string) {
99 try {

Callers

nothing calls this directly

Calls 2

keysMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected