MCPcopy
hub / github.com/thx/rap2-delos / delCache

Method delCache

src/service/redis.ts:50–60  ·  view source on GitHub ↗
(key: CACHE_KEY, entityId?: number)

Source from the content-addressed store, hash-verified

48 }
49
50 public static delCache(key: CACHE_KEY, entityId?: number): Promise<boolean> {
51 let cacheKey = this.getCacheKey(key, entityId)
52 return new Promise((resolve, reject) => {
53 RedisService.client.del(cacheKey, (error) => {
54 if (error) {
55 reject(error)
56 }
57 resolve(true)
58 })
59 })
60 }
61}

Callers 12

moveModuleMethod · 0.80
moveInterfaceMethod · 0.80
importRepoFromJSONMethod · 0.80
repository.tsFile · 0.80
account.tsFile · 0.80
cleanCacheMethod · 0.80
bulkDeleteCacheMethod · 0.80
deleteCacheMethod · 0.80
bulkDeleteCacheMethod · 0.80
deleteCacheMethod · 0.80
bulkDeleteCacheMethod · 0.80

Calls 1

getCacheKeyMethod · 0.95

Tested by

no test coverage detected