
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@gat-solutions/redis
Advanced tools
$ npm install @gat-solutions/redis
//Host của redis write
REDIS_WRITE_HOST=
//Port của redis write
REDIS_WRITE_PORT=
//Password của redis write
REDIS_WRITE_PASSWORD=
//DB index của redis write
REDIS_WRITE_DB=
//Host của redis read
REDIS_READ_HOST=
//Port của redis read
REDIS_READ_PORT=
//Password của redis read
REDIS_READ_PASSWORD=
//DB index của redis read
REDIS_READ_DB=
import { RedisService } from "@gat-solutions/redis"
const redisService = new RedisService();
// Lưu data với thời gian 60s
redisService.set("KEY:ABC", "DEF", 60); //60s
// Lưu data vô thời hạn
redisService.setNx("KEY:ABC", "DEF"); //60s
// Lấy data từ redis
const data = await redisService.get("KEY:ABC");
if (!data){
throw new Error("Not found data")
}
console.log(data) //"DEF"
// Xóa data
redisService.del("KEY:ABC")
// Lấy danh sách key
const keys = await redisService.keys("KEY")
console.log(keys) //["ABC"]
FAQs
Custom IORedis for GAT
We found that @gat-solutions/redis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.