DEL vs. UNLINK

Difficulty: Advanced

Question

What is the difference between DEL and UNLINK?

Answer

`DEL` deletes the key and reclaims memory synchronously. `UNLINK` removes the key but reclaims memory in a background thread for better performance with large objects.

Concepts covered

Performance, Memory Cleanup