
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@samiyev/redis-comfortably
Advanced tools
$ npm install @samiyev/redis-comfortably

import * as Redis from "@samiyev/redis-comfortably";
const options = {
port: 6379,
host: '127.0.0.1',
collection: [
'sessions',
//'other collection names'
]
};
const memory = new Redis.DB(options);
let user = {
id: '545e1cae5ae582d1b4639',
login: 'expamle',
password: 'password'
};
async function write(key, value, expire) {
try {
return await memory.sessions.write(key, value, expire);
}
catch (error) {
throw error
}
}
async function write(key, value, expire) {
try {
return await memory.sessions.write(key, value, expire);
}
catch (error) {
throw error
}
}
setTimeout(async(user) => {
var oneday = 24 * 60 * 60;
var key = user.id;
var result = await write(key, user, oneday);
console.log("Writing => " , result);
}, 3000, user);

async function read(key) {
try {
return await memory.sessions.read(key);
}
catch (error) {
throw error;
}
}
setTimeout(async(key) => {
var result = await read(key)
console.log("Reading => ", result);
}, 6000, user.id);

async function deleting(key) {
try {
return await memory.sessions.delete(key);
}
catch (error) {
throw error;
}
}
setTimeout(async(key) => {
var result = await deleting(key);
console.log("Deleting => " , result);
}, 9000, user.id)
###Result

##Logs

FAQs
redis session storage
The npm package @samiyev/redis-comfortably receives a total of 0 weekly downloads. As such, @samiyev/redis-comfortably popularity was classified as not popular.
We found that @samiyev/redis-comfortably 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.