I am using “node-cache” module for caching data in one of my node.js application.is there any api “node-cache” provided to check whether cache hold particular key with data or not?
I am using “node-cache” module for caching data in one of my node.js application.is there any api “node-cache” provided to check whether cache hold particular key with data or not?
2
Answers
You should start with checking the documentation
myCache.has( key )
Returns boolean indicating if the key is cached.