webda.io
webda.io copied to clipboard
Cache currently used is shared accross object instances
Describe the bug
If a @Cache is used in front of the Context getCurrentUser the result will be stored for every instances of Context
Expected behavior The Cache should not be shared between instance unless specified
Additional context
The bug comes probably from ts-method-cache but it does not seem to be maintained.
A user of WeakMap is probably a better implementation
https://github.com/PierreDuc/ts-method-cache/issues/5