skip to Main Content

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


  1. You should start with checking the documentation

    myCache.get( key, [callback] )
    
    Login or Signup to reply.
  2. myCache.has( key )

    Returns boolean indicating if the key is cached.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search