Delete Values With Min Score¶
This operation retrieves and deletes items with the lowest scores from the sorted set. You can specify the number of values to retrieve and delete.
||Name of a hive where the operation is performed. String value.|
||Key name identifying a sorted-set. String value.|
||Number of values to delete from the sorted set.|
An array containing deleted score-value pairs.
The example below deletes two items with the lowest score from a sorted set.
||Name of a hive in the system.|
||Name of a sorted set to retrieve and delete score-value pairs from.|
||Name of a hive where the operation is performed.|
||Key name identifying a sorted set.|
||Specify the number of items to delete from the sorted set.|
Returns a list of the deleted score-value pairs.
Consider the following Sorted Set storage:
The example below deletes one value with the minimum score from the
"players" sorted set. Considering the sorted set presented above, the value
"Bobby" is deleted since it has the lowest score.
The sorted set will look as shown below after the Codeless logic runs.