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?
- February 8, 2019
- 183 views
- 0 votes
- 2 Answers
-
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.