local keys_to_update = {} local all_sub_keys = {}

for i, v in ipairs(redis.call('keys', KEYS)) do

if redis.call('hexists', v, KEYS[2]) == 1 then
  table.insert(keys_to_update, v)
end

end

return keys_to_update