webda.io icon indicating copy to clipboard operation
webda.io copied to clipboard

Cache currently used is shared accross object instances

Open loopingz opened this issue 4 years ago • 1 comments

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

loopingz avatar Sep 25 '21 14:09 loopingz

https://github.com/PierreDuc/ts-method-cache/issues/5

loopingz avatar Mar 22 '23 17:03 loopingz