Open advapiIT opened 3 years ago
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