| 123456789101112 |
- -- delete user-agent, agent-user, user-logic, logic-user
- -- @ARGS: ARGS[1]: userId
- local kua='rt:user_agent:' .. ARGS[1]
- local kul='rt_user_logic:' .. ARGS[1]
- local agentId = redis.call('hget', kua, ARGS[1])
- local logicId = redis.call('hget', kul, ARGS[1])
- local kau='rt:agent_user:' .. agentId
- local klu='rt:logic_user:' .. logicId
- local r1=redis.call('zdel', kau, ARGS[1])
- local r2=redis.call('zdel', klu, ARGS[1])
- local r3=redis.call('hdel', kua, ARGS[1])
- local r4=redis.call('hdel', kul, ARGS[1])
|