
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
redis客户端node.js版本,支持连接池。
npm i @td/node-redis;
客户端使用的是ioredis
import Redis from '@td/node-redis';
// Redis的使用请参考ioredis库
// 哨兵模式使用demo
const redis = new Redis({
sentinels: [{ host: '10.57.17.210', port: 11110 }, { host: '10.57.17.210', port: 11112 }, { host: '10.57.17.210', port: 11113 }, { host: '10.57.17.210', port: 11114 }],
keyPrefix: 'prelude_',
name: 'master1',
password: 'testpass'
});
redis.set('test', 'xxx');
redis.disconnect();
RedisPool(options)构造方法参数说明:
import { RedisPool } from '@td/node-redis';
// Redis的使用请参考ioredis库
// 哨兵模式使用demo
const pool = new RedisPool({
redisOptions: {
sentinels: [{ host: '10.57.17.210', port: 11110 }, { host: '10.57.17.210', port: 11112 }, { host: '10.57.17.210', port: 11113 }, { host: '10.57.17.210', port: 11114 }],
keyPrefix: 'prelude_',
name: 'master1',
password: 'testpass'
},
poolOptions: { // 默认最小连接数为1,最大连接数为10,根据实际需要设置
min: 2,
max: 10
}
});
pool.acquire().then(client => {
client.set('test', 'xxx');
client.release(); // 使用完后一定要记得释放连接。
});
FAQs
redis客户端node版,基于ioredis与generic-pool
The npm package td-redis receives a total of 0 weekly downloads. As such, td-redis popularity was classified as not popular.
We found that td-redis 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.

Research
/Security News
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.