Concept Flow - LLEN for list length
Start
Send LLEN command with key
Check if key exists
Get length
Return length
End
The LLEN command asks Redis for the length of a list stored at a given key. If the key exists, it returns the number of elements; if not, it returns 0.