Concept Flow - DEL and UNLINK for deletion
Start
Receive DEL or UNLINK command
Check if key exists
Yes No
DEL: Remove key synchronously
UNLINK: Remove key asynchronously
Return number of keys deleted
End
The flow shows how Redis processes DEL and UNLINK commands: it checks if the key exists, then deletes it either synchronously (DEL) or asynchronously (UNLINK), and returns the count of deleted keys.