0

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 2

1

You should start with checking the documentation

myCache.get( key, [callback] )
Sign up to request clarification or add additional context in comments.

Comments

0

myCache.has( key )

Returns boolean indicating if the key is cached.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.