mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-23 04:26:49 +00:00
# Which Problems Are Solved The usage of the Redis `DEL` command showed blocking and slowdowns during load-tests. # How the Problems Are Solved Use [`UNLINK`](https://redis.io/docs/latest/commands/UNLINK/) instead. # Additional Changes - none # Additional Context - closes https://github.com/zitadel/zitadel/issues/8930
11 lines
280 B
Lua
11 lines
280 B
Lua
local function remove(object_id)
|
|
local setKey = keySetKey(object_id)
|
|
local keys = redis.call("SMEMBERS", setKey)
|
|
local n = #keys
|
|
for i = 1, n do
|
|
redis.call("UNLINK", keys[i])
|
|
end
|
|
redis.call("UNLINK", setKey)
|
|
redis.call("UNLINK", object_id)
|
|
end
|