(Redis) Remove all elements from a list

Options

How do I remove all elements from a list without having to loop to remove item by item? It's possible?


Another thing I noticed is that the "Remove From List" function in redis doesn't have the option to put a name in the return variable.

Tagged:

Best Answer

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Answer ✓
    Options

    Hey @Mauro Mequelussi-40201 - you are correct there is no Remove All From List and the Remove from list does not have not a return variable. You'd have to use a Get from List before that.

    I can definitely see how these would be useful. If you add it to our feature request board then we can track it people can upvote it for a potential new feature.