redis-manager-utils
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -376,2 +376,21 @@ const REDIS = require("redis"); | ||
// Sorted Sets | ||
zpopmin( wKey ) { | ||
if ( !wKey ) { return undefined; } | ||
let that = this; | ||
return new Promise( function( resolve , reject ) { | ||
try { that.redis.zpopmin( wKey , function( err , results ) { resolve( results ); }); } | ||
catch( error ) { console.log( error ); resolve( "null" ); } | ||
}); | ||
} | ||
zpopmax( wKey ) { | ||
if ( !wKey ) { return undefined; } | ||
let that = this; | ||
return new Promise( function( resolve , reject ) { | ||
try { that.redis.zpopmax( wKey , function( err , results ) { resolve( results ); }); } | ||
catch( error ) { console.log( error ); resolve( "null" ); } | ||
}); | ||
} | ||
// Extras | ||
@@ -378,0 +397,0 @@ deleteMultiplePatterns( wKeyPatterns ) { |
{ | ||
"name": "redis-manager-utils", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
20645
509