Redis Server Side Script - ZREM multiple values at once
snippet in lua

Redis Server Side Script - ZREM multiple values at once

user6992

local temp = redis.call('smembers','remove')    
redis.call('zrem','main', unpack(temp))