Remove specific element from a Redis list
Options
Mauro Mequelussi-1595850
Member ✭
[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?
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
-
We can add this for you in this weeks build.
-
Perfect. This will help a lot with logic.
-
Even if the list item is an object, it will be possible to remove it, right?
-
-
Perfect
-
this is now deployed.
-
👊
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback