(cacheKey: string, namespace: string)
| 180 | } |
| 181 | |
| 182 | function getUnscopedCacheKey(cacheKey: string, namespace: string) { |
| 183 | const namespacePrefix = `${namespace}:`; |
| 184 | return cacheKey.startsWith(namespacePrefix) ? cacheKey.slice(namespacePrefix.length) : cacheKey; |
| 185 | } |
| 186 | |
| 187 | async function clearNamespacedCache(cache: Cache, namespace: string) { |
| 188 | const namespacePrefix = `${namespace}:`; |
no outgoing calls
no test coverage detected
searching dependent graphs…