Skip to content

Commit b874f4f

Browse files
committed
bugfix(lru_put): MRU flag argument index
New argument `field_tts` added: - Change the index for the MRU flag argument from ARGV[6] to ARGV[7] - Update the condition to check if #ARGV > 6 instead of #ARGV > 5
1 parent 32f1b70 commit b874f4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/redis_func_cache/lua/lru_put.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ if tonumber(ttl) > 0 then
2626
end
2727

2828
local is_mru = false
29-
if #ARGV > 5 then
30-
is_mru = (ARGV[6] == 'mru')
29+
if #ARGV > 6 then
30+
is_mru = (ARGV[7] == 'mru')
3131
end
3232

3333
local c = 0

0 commit comments

Comments
 (0)