Edit: The decorator hereby discussed is now available from npm. Install with npm i @microphi/cache or yarn add @microphi/cache
I have been chas...
For further actions, you may consider blocking this person and/or reporting abuse
Looks fancy but it doesn't work for me :/ with th first block (without caring about the args) only the first call works, then nothing.
But when i update to care about different args, i just call the endpoint each time, even with the same args...
Sorry for this late reply but somehow i missed your comment. The decorator is now available through npm please try to use it from
@microphi/cache
. If it still doesn't work please open an issue here issuesI see that sometimes you use
target[
${propertyKey}_cached]
and othersthis[
${propertyKey}_cached]
. Is that an error?I tried tweaking that and it still fails
For me this doesn't work(@microphi/cache) it fetch only one id ok
If you share your code maybe I can help.
- wrong result in the template:
and for userId=1, 17 I get some result but should be different
- img :
Regards, Tomaž
hm I can't upload image
Maybe a silly question but if you remove the @Cache decorator, do you actually get what you expect?
Is there anyway you can share the project so that i can run it?
If you can please open an issue here with the steps to reproduce the problem.
The second example works perfectly. Btw, can you fix the broken links in the post? I couldn't find a GitHub repo
Thanks for point that up. I fixed it.