Closed geraparra closed 1 year ago
Hey @geraparra, you can see a test which shows how globalCacheBusterNotifier
works with @PCacheable.
https://github.com/angelnikolov/ts-cacheable/blob/64c2728ce5066beb028deb3423c92a5df3f562ad/specs/promise-cacheable.decorator.spec.ts#L634
Are you sure you are importing promiseGlobalCacheBusterNotifier
? It's a different token for promises
as you could see here
thank @angelnikolov now it's working, I was importing a wrong token for promises.
Thanks for your help.
Following the documentation:
I tried implementing global cache buster to clear whole cache but it's not working when a method is using PCacheable decorator, if I change to Cacheable decorator then globalCacheBusterNotifier.next() works fine, seems that something it's going on with PCacheable decorator.
do I need something different to use globalCacheBusterNotifier but support PCacheable decorators?
Regards,
Geri.