redis-manager-utils
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -450,7 +450,8 @@ const REDIS = require("redis"); | ||
circle_length = parseInt( circle_length ); | ||
//console.log( "Circle Length === " + circle_length.toString() ); | ||
console.log( "nextInCircularList( " + wKey + " )" ); | ||
console.log( "nextInCircularList() --> Length === " + circle_length.toString() ); | ||
// 2.) Get Next and Recycle if Necessary | ||
let next_index = await that.keyGet( wKey + ".INDEX" ); | ||
//console.log( "Keys Current Index === " + next_index.toString() ); | ||
console.log( "nextInCircularList() --> Starting Index === " + previous_index.toString() ); | ||
if ( !next_index ) { next_index = 0; } | ||
@@ -464,5 +465,6 @@ else { | ||
console.log( "Recycling to Beginning of List" ); | ||
console.log( "previousInCircularList() --> " + "Recycling to End of List" ); | ||
await that.keySet( wKey + ".INDEX" , next_index ); | ||
} | ||
//console.log( "Keys NEXT Index === " + next_index.toString() ); | ||
console.log( "previousInCircularList() --> Ending Index === " + next_index.toString() ); | ||
const next_in_circle = await that.listGetByIndex( wKey , next_index ); | ||
@@ -469,0 +471,0 @@ resolve( [ next_in_circle , next_index ] ); |
{ | ||
"name": "redis-manager-utils", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
19192
465