Overview
Removes and returns the first element of the list stored atkey. When a count is provided, removes and returns up to count elements.
Method Signature
Parameters
The key of the list.
The number of elements to pop. When specified, returns an array of elements instead of a single element.
Return Value
When called without
count: The first element of the list, or null if the list is empty or does not exist.When called with count: An array of popped elements, or null if the list is empty or does not exist.