Overview
Inserts one or more values at the head of the list stored atkey. If key does not exist, it is created as an empty list before performing the push operations.
Method Signature
Parameters
string
required
The key of the list.
TData[]
required
One or more elements to insert at the head of the list. Elements are inserted one after the other, so the first element in the arguments will be the first element of the list.
Return Value
number
The length of the list after the push operations.