Closed
Description
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 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.
Basic Code Example
await client.RPOP('myKey');
// 'value'
await client.RPOP('myKey', 1);
// ['value']
await client.RPOP('myKey', 2);
// ['value1', 'value2']
Metadata
Metadata
Assignees
Labels
No labels