Hi everyone,
I’m encountering a significant limitation with the native Redis node provided in n8n: it does not support the HDEL command. This command is essential for deleting specific fields within a Redis hash without removing the entire key. In our workflows, we sometimes need to update or remove only certain fields, rather than deleting and recreating the entire hash.
Why is this important?
Deleting the entire key and then recreating it can quickly lead to issues, especially when other workflows rely on these data “bricks” to be continuously available. For instance:
- Real-Time Access:
If a workflow relies on these keys to perform real-time calculations or to serve API responses, the temporary unavailability of the key (while it’s being deleted and then recreated) could lead to false alerts or incomplete data being served. - Transactional Integrity:
In scenarios where multiple workflows are chained together (e.g., one workflow aggregates data, another synchronizes it to Redis, and yet another consumes it), deleting the key may lead to inconsistencies. The consuming workflow might access a partially updated key or find it missing entirely, leading to downstream errors.
By using HDEL to remove only the obsolete fields within a hash, we can ensure the overall key remains available and maintains its structure, thereby preserving data integrity and continuous availability.
My Request:
I believe adding HDEL functionality to the native Redis node in n8n would be incredibly beneficial for many users. Has anyone else encountered this issue or found a workaround? I’d appreciate any insights on how to implement or support partial field deletions without resorting to external code or additional nodes.
Thanks in advance for your help and ideas!