Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redis-manager-utils

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-manager-utils - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

19

BaseClass.js

@@ -482,2 +482,21 @@ const REDIS = require("redis");

nextInCircularSet( wKey , wAmount ) {
if ( !wKey ) { return undefined; }
wAmount = wAmount || 1;
let that = this;
return new Promise( async function( resolve , reject ) {
try {
let list = await that.setPopRandomMembers( wKey , 25 );
await Redis.setSetFromArray( RC.GENRES[ genre ].TRACKS + ".RECYCLED" , list );
if ( list.length < 1 ) {
await Redis.setStoreUnion( RC.GENRES[ genre ].TRACKS , RC.GENRES[ genre ].TRACKS + ".RECYCLED" );
await Redis.keyDel( RC.GENRES[ genre ].TRACKS + ".RECYCLED" );
list = await Redis.setPopRandomMembers( RC.GENRES[ genre ].TRACKS , 25 );
}
}
catch( error ) { console.log( error ); reject( error ); }
});
}
// Adds an Array of Potential New Items to a set ,

@@ -484,0 +503,0 @@ // But compares them first to a filter set before adding

2

package.json
{
"name": "redis-manager-utils",
"version": "1.1.1",
"version": "1.1.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "main.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc