You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
It's the first time I use node-cache (I normally develop in c#), I've seen that's available on the doc the getOrElse method, I've tried with the following code but I got a getOrElse is not a myCache function error..
You have a wrong import, it should be require('cached').
There is no constructor, so no such thing as new NodeCache();.
Is that a bitwise OR??? ttl | 10000 :D, I think you meant to use ttl || 10000. Check the example code in the readme for simple usage of this library.
Hello,
It's the first time I use node-cache (I normally develop in c#), I've seen that's available on the doc the getOrElse method, I've tried with the following code but I got a getOrElse is not a myCache function error..
Here's the snippet of my class
What am I doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: