Remove specific element from a Redis list

Options
[Captura de Tela 2022-04-23 às 18.05.47.png]
From what I saw it is not possible to remove a specific element within a list in Redis.

The logic I'm using is to add it to the list when I get a call on the endpoint and then with a task and make some updates.

In the task I look for items in the list and do a loop to access each item and send it to another endpoint, but I just want to remove it from the list if I don't receive any error, otherwise I want to reprocess it in the next task execution. Without being able to remove the specific element from the list, you may remove the wrong one and this ends up causing a big problem.

Is there any way to accomplish this?

Comments