
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
redis-extension
Advanced tools
This a library, which provides additional features to the redis client library.
Table of Contents
npm install redis-extension --save
import {
Watcher,
createClient
} from "redis-extension";
const client = createClient();
client.set('foo', 'bar', 'PX', '500');
const watcher = new Watcher(client, {
pattern: 'foo*',
});
// Register events
watcher.on('expire', (key) => {
console.log(key);
// foo
});
// Start watching
await watcher.start();
import {
createClient,
ScoreBoard,
} from "redis-extension";
const client = createClient();
const scoreBoard = new ScoreBoard(client, {
key: 'users-online'
});
// add user with id: 1 to the stack (time: 1642423766)
scoreBoard.add(1);
// add user with id: 2 to the stack (time: 1642423866)
scoreBoard.add(2);
const output = scoreBoard.get({
sort: 'DESC'
});
console.log(output);
// {
// data: [
// {id: 1, score: 1642423766},
// {id: 2, score: 1642423866}
// ],
// meta: {
// total: 2
// }
// }
The score property represents the unix timestamp by default if it has not been set otherwise.
import {
JsonAdapter,
createClient
} from "redis-extension";
const client = createClient();
const jsonAdapter = new JsonAdapter(client);
await jsonAdapter.set('51f3509d-871b-48ad-af15-d1c9eb941362', {
name: 'admin',
// ...
});
const payload = jsonAdapter.get('51f3509d-871b-48ad-af15-d1c9eb941362');
console.log(payload);
// { name: 'admin', ... }
Made with 💚
Published under MIT License.
FAQs
A redis extension.
We found that redis-extension demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.