diff --git a/redlock.js b/redlock.js index b8e620f..9867631 100644 --- a/redlock.js +++ b/redlock.js @@ -20,7 +20,7 @@ const lockScript = ` end -- Return the number of entries added. - return table.getn(KEYS) + return #KEYS `; const unlockScript = ` @@ -51,7 +51,7 @@ const extendScript = ` end -- Return the number of entries updated. - return table.getn(KEYS) + return #KEYS `; // defaults