Fixed - 'hmget' should be instead of 'hget' in RMapCache.getAllWithTTLOnly() method. #6128

pull/6137/head
Nikita Koksharov 7 months ago
parent 0fd7dfb407
commit 569ed7711d

@ -1684,8 +1684,9 @@ public class RedissonMapCache<K, V> extends RedissonMap<K, V> implements RMapCac
"local currentTime = tonumber(table.remove(ARGV, 1)); " + // index is the first parameter
"local hasExpire = #expireHead == 2 and tonumber(expireHead[2]) <= currentTime; " +
"local map = {}; " +
"for i = 1, #ARGV, 1 do " +
" local value = redis.call('hget', KEYS[1], ARGV[i]); " +
"local values = redis.call('hmget', KEYS[1], unpack(ARGV));" +
"for i = 1, #values, 1 do " +
" local value = values[i]; " +
" map[i] = false;" +
" if value ~= false then " +
" local key = ARGV[i]; " +

Loading…
Cancel
Save