Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
rss-cache
Advanced tools
Changelog
0.1.3
remove src from npm package
Readme
A node cache lib
Can be used alone without a message queue system
Or Can sync data between server or pm2 process depends on redis, or some other message queue.
npm install rss-cache
const rssCache = new RssCache('mycache', 10 * 60 * 1000)
const key = 'cacheKey'
const value = rssCache.get(() => { return parseInt(Math.random(100) * 100) }, key)
const rssCache = new RssCache('mycache', 10 * 60 * 1000)
const key = 'cacheKey'
const val = rssCache.get(new Promise((resolve) => {
setTimeout(() => {
resolve(parseInt(Math.random(100) * 100))
}, 1000)
}), key)
val.then((value) => {
res.write(`get key [${key}]: ${value}`);
res.end();
})
you can allso depend on others message queue
RssCache.initSync(new RssRedis({channel: 'RssCacheChannel', host: 'localhost'}))
you can try it with
npm install -g pm2
rm -rf dist && npm run build && cd dist/examples && pm2 start demo.js -i 2
then visist
http://localhost:6060/?key=b
http://localhost:6060/?key=b&type=clear
http://localhost:6060/?key=c&sync=async
in your browser
FAQs
A synchronous node cache package based on redis sub & pub
The npm package rss-cache receives a total of 0 weekly downloads. As such, rss-cache popularity was classified as not popular.
We found that rss-cache 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.