You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Redis v6.2 a second argument was added to the RPOP and LPOP commands that allows for specifying a count of items that should be attempted to fetch from a list. It doesn't look like this support has been added to the library yet. Without these extra arguments is the necessary to perform a multi-command request. I realize it is possible to use client.sendCommand(['RPOP', 'key', '10']), I am just not sure what this project's stance is on feature parity.
Adding support for this would require that RPOP and LPOP return different data types (string or array) depending on the arguments given.
Out of curiosity, how was one supposed to know that was available in the API? I have run into numerous situations where situations where "out of the box commands" don't really work but there isn't really anything in the docs for this package explaining that.
Motivation
In Redis v6.2 a second argument was added to the RPOP and LPOP commands that allows for specifying a
count
of items that should be attempted to fetch from a list. It doesn't look like this support has been added to the library yet. Without these extra arguments is the necessary to perform a multi-command request. I realize it is possible to useclient.sendCommand(['RPOP', 'key', '10'])
, I am just not sure what this project's stance is on feature parity.Adding support for this would require that RPOP and LPOP return different data types (string or array) depending on the arguments given.
Basic Code Example
The text was updated successfully, but these errors were encountered: