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

Method deleteAll

src/cache/localcache.ts:35–42  ·  view source on GitHub ↗
(appendCriteria?: string)

Source from the content-addressed store, hash-verified

33 }
34
35 async deleteAll(appendCriteria?: string) {
36 const keys = await this.keys(appendCriteria);
37 if (!keys?.length) {
38 return 0;
39 }
40
41 return LocalCache.localCache.del(keys);
42 }
43
44 async keys(appendCriteria?: string) {
45 const filter = `${this.buildKey('')}${appendCriteria ? `${appendCriteria}:` : ''}`;

Callers

nothing calls this directly

Calls 1

keysMethod · 0.95

Tested by

no test coverage detected