You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dequeue: "local qname=ARGV[1] local exp=tonumber(ARGV[2]) local key=redis.call('rpoplpush',qname..':queued',qname..':processing') if type(key) == 'string' then local exkey=string.format('%s:tracking:%s',qname,key) redis.call('setex',exkey,exp,'1') local val=redis.call('hget',qname..':data',key) return {key,val} else return false end",
enqueue: "local qname=ARGV[1] local data=ARGV[2] local shakey=redis.sha1hex(data) redis.call('hset',qname..':data',shakey,data) redis.call('lpush',qname..':queued',shakey) return shakey"