bentocache
bentocache copied to clipboard
With a bus, `clear`ing a namespace will clear the entire cache
Unless I'm mistaken, when publishing the Clear message to the bus, we are not providing it with the namespace name (https://github.com/Julien-R44/bentocache/blob/9d66e2f14c41936493d7af6b1d23a14c44bdb192/packages/bentocache/src/cache/cache.ts#L255) and as such, all subscribed caches (including the root) will clear the cache (https://github.com/Julien-R44/bentocache/blob/9d66e2f14c41936493d7af6b1d23a14c44bdb192/packages/bentocache/src/bus/bus.ts#L65); right?