
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
node-cache-helper
Advanced tools
A helper for node-cache
Yarn
yarn add node-cache
yarn add node-cache-helper
NPM
npm install node-cache --save
npm install node-cache-helper --save
Key DO NOT contain _
See cache.test.js File
const CacheHelper = require('node-cache-helper')
const singleflight = require('node-singleflight')
let instance = new CacheHelper()
instance.register('Videos', () => singleflight.Do('Videos', someAsyncFuncReturnA))
let d = await instance.get('Videos') // d = A
// With Special Args
// split key with `_` and send them as args of function
async function getUser(id) { return id }
instance.register('User', (id) => singleflight.Do('User_' + id, () => getUser(id)))
let d1 = await instance.get('User_1') // d1 = 1
let d2 = await instance.get('User_2') // d2 = 2
let d3 = await instance.get('User_tmp') // d3 = tmp
FAQs
A helper for node-cache
The npm package node-cache-helper receives a total of 1 weekly downloads. As such, node-cache-helper popularity was classified as not popular.
We found that node-cache-helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.