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